Class UnitTestSupport

    • Constructor Detail

      • UnitTestSupport

        public UnitTestSupport​(String name,
                               String sourceURI,
                               File resultDir)
        Construct a new instance.
        Parameters:
        name - the requirement id or name to be tested
        sourceURI - the URI for the resource from which the test was loaded
        resultDir - the directory to write results to
    • Method Detail

      • getXmlOutputter

        public org.jdom2.output.XMLOutputter getXmlOutputter()
        Retrieves the XML outputter that can be used to output XML documents.
        Returns:
        the XMLOutputter instance
      • getSourceURI

        public String getSourceURI()
      • getResultDir

        public File getResultDir()
      • setSummary

        public void setSummary​(String text)
      • getAssessments

        public List<? extends gov.nist.secauto.decima.core.assessment.Assessment<gov.nist.secauto.decima.xml.document.XMLDocument>> getAssessments()
        Specified by:
        getAssessments in interface AssessmentUnitTestBase
      • addAssessments

        public void addAssessments​(List<? extends gov.nist.secauto.decima.core.assessment.Assessment<gov.nist.secauto.decima.xml.document.XMLDocument>> assessments)
      • setAssertions

        public void setAssertions​(List<Assertion> assertions)
      • setTemplateProcessor

        public void setTemplateProcessor​(TemplateProcessor processor)
      • getXMLDocumentFactory

        public gov.nist.secauto.decima.xml.document.XMLDocumentFactory getXMLDocumentFactory()
      • setXMLDocumentFactory

        public void setXMLDocumentFactory​(gov.nist.secauto.decima.xml.document.XMLDocumentFactory factory)
      • processTemplate

        protected gov.nist.secauto.decima.xml.document.XMLDocument processTemplate()
                                                                            throws gov.nist.secauto.decima.core.document.DocumentException
        Throws:
        gov.nist.secauto.decima.core.document.DocumentException