Class EUnitXMLFormatter


  • public class EUnitXMLFormatter
    extends java.lang.Object
    Class which saves the results of an EUnit test run as an XML file, using the de facto standard format used by the JUnit Ant task.
    Version:
    1.0
    Author:
    Antonio García-Domínguez
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.w3c.dom.Document generate()
      Generates a DOM tree with the results of the provided EUnit module, following the format of the JUnit Ant task.
      void generate​(java.io.File reportDirectory)
      Generates the report using generate(), and then saves the XML document into a file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EUnitXMLFormatter

        public EUnitXMLFormatter​(EUnitModule module)
    • Method Detail

      • generate

        public org.w3c.dom.Document generate()
                                      throws EolRuntimeException
        Generates a DOM tree with the results of the provided EUnit module, following the format of the JUnit Ant task.
        Throws:
        EolRuntimeException
      • generate

        public void generate​(java.io.File reportDirectory)
                      throws EolRuntimeException
        Generates the report using generate(), and then saves the XML document into a file.
        Parameters:
        reportDirectory - Destination directory.
        Throws:
        EolRuntimeException