Package gov.niem.tools.api.validation
Class TestResult
java.lang.Object
gov.niem.tools.api.validation.TestResult
An individual test result.
Separate tests and results are useful for cases when validators are able to create a separate test for each kind of issue (e.g., a property declaration without a definition). Each occurrence of that issue would be recorded as a separate result.
In some cases, tests and results might not be able to be grouped and each failed test will have a single result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Test result status (error, warning, info, passed, unset).static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestResult
(String testId) TestResult
(String testId, TestResult.Status status, String prefix, String entity, String entityCategory, String message, String location, String line, String column, String comment, String problemValue) TestResult
(String testId, String label) TestResult
(String testId, String label, String prefix, String problemValue) Creates a new TestResult object with the given values. -
Method Summary
Modifier and TypeMethodDescriptionstatic TestResult.TestResultBuilder
builder()
protected boolean
boolean
getLine()
int
hashCode()
void
setColumn
(int col) void
void
setComment
(String comment) void
void
setEntityCategory
(String entityCategory) void
setLine
(int line) void
void
setLocation
(String location) void
setMessage
(String message) void
void
setProblemValue
(String problemValue) void
setStatus
(TestResult.Status status) void
toString()
-
Field Details
-
testId
-
status
-
prefix
-
entity
-
entityCategory
-
message
-
location
-
line
-
column
-
comment
-
problemValue
-
-
Constructor Details
-
TestResult
-
TestResult
-
TestResult
Creates a new TestResult object with the given values. -
TestResult
public TestResult() -
TestResult
-
-
Method Details
-
setLine
public void setLine(int line) -
setLine
-
setColumn
public void setColumn(int col) -
setColumn
-
builder
-
getTestId
-
getStatus
-
getPrefix
-
getEntity
-
getEntityCategory
-
getMessage
-
getLocation
-
getLine
-
getColumn
-
getComment
-
getProblemValue
-
setTestId
-
setStatus
-
setPrefix
-
setEntity
-
setEntityCategory
-
setMessage
-
setLocation
-
setComment
-
setProblemValue
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-