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

  • 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)
    • builder

      public static TestResult.TestResultBuilder builder()
    • getTestId

      public String getTestId()
    • getStatus

      public TestResult.Status getStatus()
    • getPrefix

      public String getPrefix()
    • getEntity

      public String getEntity()
    • getEntityCategory

      public String getEntityCategory()
    • getMessage

      public String getMessage()
    • getLocation

      public String getLocation()
    • getLine

      public String getLine()
    • getColumn

      public String getColumn()
    • getComment

      public String getComment()
    • getProblemValue

      public String getProblemValue()
    • setTestId

      public void setTestId(String testId)
    • setStatus

      public void setStatus(TestResult.Status status)
    • setPrefix

      public void setPrefix(String prefix)
    • setEntity

      public void setEntity(String entity)
    • setEntityCategory

      public void setEntityCategory(String entityCategory)
    • setMessage

      public void setMessage(String message)
    • setLocation

      public void setLocation(String location)
    • setComment

      public void setComment(String comment)
    • setProblemValue

      public void setProblemValue(String problemValue)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object