org.jomc.ant.test
Class JomcTaskTest

Package class diagram package JomcTaskTest
java.lang.Object
  extended by org.jomc.ant.test.JomcTaskTest
Direct Known Subclasses:
JomcModelTaskTest, MergeModletsTaskTest

public class JomcTaskTest
extends Object

Test cases for class org.jomc.ant.JomcTask.

Version:
$JOMC: JomcTaskTest.java 4200 2012-01-25 09:46:13Z schulte2005 $
Author:
Christian Schulte

Constructor Summary
JomcTaskTest()
          Creates a new JomcTaskTest instance.
 
Method Summary
 AntExecutionResult executeTarget(String target)
          Executes an Ant target.
 AntExecutor getAntExecutor()
          Gets the AntExecutor instance backing the test.
protected  String getBuildFileName()
          Gets the name of the build file backing the test.
 JomcTask getJomcTask()
          Gets the JomcTask instance tests are performed with.
 File getOutputDirectory()
          Gets the output directory of instance.
 org.apache.tools.ant.Project getProject()
          Gets the Project backing the test.
protected  AntExecutor newAntExecutor()
          Creates a new AntExecutor instance backing the test.
protected  JomcTask newJomcTask()
          Creates a new JomcTask instance to test.
protected  org.apache.tools.ant.Project newProject()
          Creates and configures a new Project instance backing the test.
 void setUp()
           
 void tearDown()
           
 void testAssertKeysNotNull()
           
 void testAssertLocationsNotNull()
           
 void testAssertNamesNotNull()
           
 void testAssertNotNull()
           
 void testCloneable()
           
 void testExecuteTask()
           
 void testExecuteTaskIf()
           
 void testExecuteTaskUnless()
           
 void testGetModel()
           
 void testGetProperties()
           
 void testGetResource()
           
 void testGetTransformer()
           
 void testModelContextAttributeMissingKey()
           
 void testTransformationOutputPropertyMissingKey()
           
 void testTransformationParameterMissingKey()
           
 void testTransformationParameterResourceMissingLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JomcTaskTest

public JomcTaskTest()
Creates a new JomcTaskTest instance.

Method Detail

getOutputDirectory

public final File getOutputDirectory()
Gets the output directory of instance.

Returns:
The output directory of instance.

getJomcTask

public JomcTask getJomcTask()
Gets the JomcTask instance tests are performed with.

Returns:
The JomcTask instance tests are performed with.
See Also:
newJomcTask()

newJomcTask

protected JomcTask newJomcTask()
Creates a new JomcTask instance to test.

Returns:
A new JomcTask instance to test.
See Also:
getJomcTask()

getProject

public org.apache.tools.ant.Project getProject()
Gets the Project backing the test.

Returns:
The Project backing the test.
See Also:
newProject()

newProject

protected org.apache.tools.ant.Project newProject()
Creates and configures a new Project instance backing the test.

Returns:
A new Project instance backing the test.
See Also:
getProject(), getBuildFileName()

getAntExecutor

public AntExecutor getAntExecutor()
Gets the AntExecutor instance backing the test.

Returns:
The AntExecutor instance backing the test.
See Also:
newAntExecutor()

newAntExecutor

protected AntExecutor newAntExecutor()
Creates a new AntExecutor instance backing the test.

Returns:
A new AntExecutor instance backing the test.
See Also:
getAntExecutor()

getBuildFileName

protected String getBuildFileName()
Gets the name of the build file backing the test.

Returns:
The the name of the build file backing the test.
See Also:
newProject()

setUp

public void setUp()
           throws Exception
Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

executeTarget

public AntExecutionResult executeTarget(String target)
Executes an Ant target.

Parameters:
target - The name of the target to execute.
Returns:
The result of the execution.
Throws:
NullPointerException - if target is null.

testAssertNotNull

public final void testAssertNotNull()
                             throws Exception
Throws:
Exception

testAssertNamesNotNull

public final void testAssertNamesNotNull()
                                  throws Exception
Throws:
Exception

testAssertKeysNotNull

public final void testAssertKeysNotNull()
                                 throws Exception
Throws:
Exception

testAssertLocationsNotNull

public final void testAssertLocationsNotNull()
                                      throws Exception
Throws:
Exception

testGetTransformer

public final void testGetTransformer()
                              throws Exception
Throws:
Exception

testGetResource

public final void testGetResource()
                           throws Exception
Throws:
Exception

testGetProperties

public final void testGetProperties()
                             throws Exception
Throws:
Exception

testGetModel

public final void testGetModel()
                        throws Exception
Throws:
Exception

testExecuteTask

public final void testExecuteTask()
                           throws Exception
Throws:
Exception

testExecuteTaskIf

public final void testExecuteTaskIf()
                             throws Exception
Throws:
Exception

testExecuteTaskUnless

public final void testExecuteTaskUnless()
                                 throws Exception
Throws:
Exception

testCloneable

public final void testCloneable()
                         throws Exception
Throws:
Exception

testModelContextAttributeMissingKey

public final void testModelContextAttributeMissingKey()
                                               throws Exception
Throws:
Exception

testTransformationParameterMissingKey

public final void testTransformationParameterMissingKey()
                                                 throws Exception
Throws:
Exception

testTransformationParameterResourceMissingLocation

public final void testTransformationParameterResourceMissingLocation()
                                                              throws Exception
Throws:
Exception

testTransformationOutputPropertyMissingKey

public final void testTransformationOutputPropertyMissingKey()
                                                      throws Exception
Throws:
Exception


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.