org.jomc.tools.test
Class JomcToolTest

Package class diagram package JomcToolTest
java.lang.Object
  extended by org.jomc.tools.test.JomcToolTest
Direct Known Subclasses:
ClassFileProcessorTest, ResourceFileProcessorTest, SourceFileProcessorTest

public class JomcToolTest
extends Object

Test cases for class org.jomc.tools.JomcTool.

Version:
$JOMC: JomcToolTest.java 4527 2012-05-23 00:43:20Z schulte2005 $
Author:
Christian Schulte

Constructor Summary
JomcToolTest()
          Creates a new JomcToolTest instance.
 
Method Summary
static void assertIllegalArgumentException(IllegalArgumentException e)
           
static void assertNullPointerException(NullPointerException e)
           
 JomcTool getJomcTool()
          Gets the JomcTool instance tests are performed with.
 Model getModel()
          Gets the Model instance backing the test.
 ModelContext getModelContext()
          Gets the ModelContext instance backing the test.
 File getNextOutputDirectory()
          Gets the next output directory of the instance.
 File getOutputDirectory()
          Gets the output directory of instance.
 String getResourceEncoding()
          Gets the name of the encoding used when reading resources.
protected  JomcTool newJomcTool()
          Creates a new JomcTool instance to test.
protected  Model newModel()
          Creates a new Model instance backing the test.
protected  ModelContext newModelContext()
          Creates a new ModelContext instance backing the test.
 void setOutputDirectory(File value)
          Sets the output directory of instance.
 void setResourceEncoding(String value)
          Sets the name of the encoding to use when reading resources.
 void testDefaultLogLevel()
           
 void testDefaultTemplateProfile()
           
 void testIndentation()
           
 void testInputEncoding()
           
 void testJomcToolNotNull()
           
 void testJomcToolNullPointerException()
           
 void testLineSeparator()
           
 void testLogLevel()
           
 void testModel()
           
 void testOutputEncoding()
           
 void testTemplateEncoding()
           
 void testTemplateProfile()
           
 void testVelocityEngine()
           
 void testVelocityTemplates()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JomcToolTest

public JomcToolTest()
Creates a new JomcToolTest instance.

Method Detail

getResourceEncoding

public final String getResourceEncoding()
Gets the name of the encoding used when reading resources.

Returns:
The name of the encoding used when reading resources.
See Also:
setResourceEncoding(java.lang.String)

setResourceEncoding

public final void setResourceEncoding(String value)
Sets the name of the encoding to use when reading resources.

Parameters:
value - The new name of the encoding to use when reading resources or null.
See Also:
getResourceEncoding()

getOutputDirectory

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

Returns:
The output directory of instance.
See Also:
setOutputDirectory(java.io.File)

setOutputDirectory

public final void setOutputDirectory(File value)
Sets the output directory of instance.

Parameters:
value - The new output directory of instance or null.
See Also:
getOutputDirectory()

getNextOutputDirectory

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

Returns:
The next output directory of the instance.

getJomcTool

public JomcTool getJomcTool()
Gets the JomcTool instance tests are performed with.

Returns:
The JomcTool instance tests are performed with.
See Also:
newJomcTool()

newJomcTool

protected JomcTool newJomcTool()
Creates a new JomcTool instance to test.

Returns:
A new JomcTool instance to test.
See Also:
getJomcTool()

getModelContext

public ModelContext getModelContext()
Gets the ModelContext instance backing the test.

Returns:
The ModelContext instance backing the test.
See Also:
newModelContext()

newModelContext

protected ModelContext newModelContext()
Creates a new ModelContext instance backing the test.

Returns:
A new ModelContext instance backing the test.
See Also:
getModelContext()

getModel

public Model getModel()
Gets the Model instance backing the test.

Returns:
The Model instance backing the test.
See Also:
newModel()

newModel

protected Model newModel()
Creates a new Model instance backing the test.

Returns:
A new Model instance backing the test.
See Also:
getModel()

testJomcToolNullPointerException

public final void testJomcToolNullPointerException()
                                            throws Exception
Throws:
Exception

testJomcToolNotNull

public final void testJomcToolNotNull()
                               throws Exception
Throws:
Exception

testVelocityTemplates

public final void testVelocityTemplates()
                                 throws Exception
Throws:
Exception

testDefaultLogLevel

public final void testDefaultLogLevel()
                               throws Exception
Throws:
Exception

testLogLevel

public final void testLogLevel()
                        throws Exception
Throws:
Exception

testDefaultTemplateProfile

public final void testDefaultTemplateProfile()
                                      throws Exception
Throws:
Exception

testTemplateProfile

public final void testTemplateProfile()
                               throws Exception
Throws:
Exception

testIndentation

public final void testIndentation()
                           throws Exception
Throws:
Exception

testModel

public final void testModel()
                     throws Exception
Throws:
Exception

testVelocityEngine

public final void testVelocityEngine()
                              throws Exception
Throws:
Exception

testTemplateEncoding

public final void testTemplateEncoding()
                                throws Exception
Throws:
Exception

testInputEncoding

public final void testInputEncoding()
                             throws Exception
Throws:
Exception

testOutputEncoding

public final void testOutputEncoding()
                              throws Exception
Throws:
Exception

testLineSeparator

public final void testLineSeparator()
                             throws Exception
Throws:
Exception

assertNullPointerException

public static void assertNullPointerException(NullPointerException e)

assertIllegalArgumentException

public static void assertIllegalArgumentException(IllegalArgumentException e)


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.