Class WorkflowTestCase

  • Direct Known Subclasses:
    EUnitTestCase, WorkflowTaskTestCase

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

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void addTaskDefinitionsTo​(org.apache.tools.ant.Project project)  
      protected void assertContains​(java.lang.String message, java.lang.String substr)  
      void runTarget​(java.io.File buildFile, java.lang.String targetName)
      Runs the specified target in the provided Ant buildfile.
      • Methods inherited from class java.lang.Object

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

      • WorkflowTestCase

        public WorkflowTestCase()
    • Method Detail

      • runTarget

        public void runTarget​(java.io.File buildFile,
                              java.lang.String targetName)
                       throws java.lang.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.
        java.lang.Exception
      • addTaskDefinitionsTo

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

        protected void assertContains​(java.lang.String message,
                                      java.lang.String substr)