Class Test

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

public class Test extends Object
Information about a validation test.
  • Field Details

    • status

      public TestResult.Status status
    • id

      public String id
    • description

      public String description
    • severity

      public Test.Severity severity
    • category

      public String category
    • component

      public String component
    • field

      public String field
    • comments

      public String comments
    • scope

      public String scope
    • source

      public String source
    • specId

      public String specId
    • specUrl

      public String specUrl
    • ruleNumber

      public String ruleNumber
    • ruleUrl

      public String ruleUrl
    • exampleValid

      public String exampleValid
    • exampleInvalid

      public String exampleInvalid
    • exceptions

      public String exceptions
    • exceptionLabels

      public String exceptionLabels
    • notes

      public String notes
    • ran

      public boolean ran
    • runtime

      public float runtime
      Test runtime in seconds.
    • results

      public List<TestResult> results
  • Constructor Details

  • Method Details

    • startTest

      public void startTest()
      Starts the test and stores the current time for the test runtime calculation.
    • startTest

      public void startTest(Test.Severity severity)
      Starts the test and stores the current time for the test runtime calculation.
    • endTest

      public void endTest()
      Marks the test as ran and calculates the runtime.
    • countWarnings

      public long countWarnings()
    • countErrors

      public long countErrors()
    • countInfo

      public long countInfo()
    • countPassed

      public long countPassed()