Class TestResult

java.lang.Object
gov.niem.tools.api.validation.TestResult

public class TestResult extends Object
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.

  • Field Details

  • Constructor Details

    • TestResult

      public TestResult(String testId)
    • TestResult

      public TestResult(String testId, String label)
    • TestResult

      public TestResult(String testId, String label, String prefix, String problemValue)
      Creates a new TestResult object with the given values.
  • Method Details

    • setLine

      public void setLine(int line)
    • setLine

      public void setLine(String line)
    • setColumn

      public void setColumn(int col)
    • setColumn

      public void setColumn(String col)