Class EUnitTask

    • Constructor Detail

      • EUnitTask

        public EUnitTask()
    • Method Detail

      • initialize

        protected void initialize()
                           throws java.lang.Exception
        Specified by:
        initialize in class ExecutableModuleTask
        Throws:
        java.lang.Exception
      • examine

        protected void examine()
                        throws java.lang.Exception
        Specified by:
        examine in class ExecutableModuleTask
        Throws:
        java.lang.Exception
      • beforeCase

        public void beforeCase​(EUnitModule module,
                               EUnitTest test)
        Description copied from interface: EUnitTestListener
        Notification sent before running a test case.
        Specified by:
        beforeCase in interface EUnitTestListener
        Parameters:
        module - EUnit module under execution.
        test - Description of the test case: its result has not been set yet.
      • afterCase

        public void afterCase​(EUnitModule module,
                              EUnitTest test)
        Description copied from interface: EUnitTestListener
        Notification sent after running a test case.
        Specified by:
        afterCase in interface EUnitTestListener
        Parameters:
        module - EUnit module under execution.
        test - Test case, with its result set.
      • getToDir

        public java.io.File getToDir()
        Returns the destination directory for the JUnit-like report. By default, it is the base directory of the Ant project.
      • setToDir

        public void setToDir​(java.io.File f)
        Changes the destination directory for the JUnit-like report. See getToDir() for the default value.
      • getPackage

        public java.lang.String getPackage()
        Returns the package in which all tests will be contained. By default, it is set to EUnitModule.DEFAULT_PACKAGE.
      • setPackage

        public void setPackage​(java.lang.String packageName)
        Changes the package in which all tests will be contained. Empty or null arguments are ignored.
      • isReport

        public boolean isReport()
        Returns true if a XML report compatible with the <junit> Ant task should be generated.
      • setReport

        public void setReport​(boolean generate)
        Changes whether an XML report compatible with the <junit> Ant task should be generated. By default, it will be generated.
        Parameters:
        generate - If true, the XML report will be generated. Otherwise, it will not be generated.