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 enumTest result status (error, warning, info, passed, unset). -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTestResult(String testId) 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
-
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.
-
-
Method Details
-
setLine
public void setLine(int line) -
setLine
-
setColumn
public void setColumn(int col) -
setColumn
-