Class WorkflowTestCase

  • Direct Known Subclasses:
    EUnitTestCase, WorkflowTaskTestCase

    public abstract class WorkflowTestCase
    extends Object
    Superclass for all test cases for the workflow classes, providing several utility methods.
    Version:
    1.0
    Author:
    Antonio García-Domínguez
    • Constructor Detail

      • WorkflowTestCase

        public WorkflowTestCase()
    • Method Detail

      • runTarget

        public void runTarget​(File buildFile,
                              String targetName)
                       throws Exception
        Runs the specified target in the provided Ant buildfile. Only some tasks are available: check the source code for details.
        Parameters:
        buildFile - Ant buildfile to be run.
        targetName - Name of the target to be run.
        Throws:
        org.apache.tools.ant.BuildException - The build failed.
        Exception
      • addTaskDefinitionsTo

        protected abstract void addTaskDefinitionsTo​(org.apache.tools.ant.Project project)
      • assertContains

        protected void assertContains​(String message,
                                      String substr)