public class JomcToolTest extends Object
org.jomc.tools.JomcTool
.Constructor and Description |
---|
JomcToolTest()
Creates a new
JomcToolTest instance. |
Modifier and Type | Method and Description |
---|---|
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 |
testDefaultTemplateEncoding() |
void |
testDefaultTemplateProfile() |
void |
testIndentation() |
void |
testInputEncoding() |
void |
testJavaConstantName() |
void |
testJavaFieldName() |
void |
testJavaIdentifier() |
void |
testJavaMethodParameterName() |
void |
testJomcToolModelObjectsNotFound() |
void |
testJomcToolNotNull() |
void |
testJomcToolNullPointerException() |
void |
testLineSeparator() |
void |
testLogLevel() |
void |
testModel() |
void |
testOutputEncoding() |
void |
testParentTemplateProfile() |
void |
testTemplateEncoding() |
void |
testTemplateProfile() |
void |
testVelocityContext() |
void |
testVelocityEngine() |
void |
testVelocityTemplates() |
public JomcToolTest()
JomcToolTest
instance.public final String getResourceEncoding()
setResourceEncoding(java.lang.String)
public final void setResourceEncoding(String value)
value
- The new name of the encoding to use when reading resources or null
.getResourceEncoding()
public final File getOutputDirectory()
setOutputDirectory(java.io.File)
public final void setOutputDirectory(File value)
value
- The new output directory of instance or null
.getOutputDirectory()
public final File getNextOutputDirectory()
public JomcTool getJomcTool()
JomcTool
instance tests are performed with.JomcTool
instance tests are performed with.newJomcTool()
protected JomcTool newJomcTool()
JomcTool
instance to test.JomcTool
instance to test.getJomcTool()
public ModelContext getModelContext()
ModelContext
instance backing the test.ModelContext
instance backing the test.newModelContext()
protected ModelContext newModelContext()
ModelContext
instance backing the test.ModelContext
instance backing the test.getModelContext()
public Model getModel()
Model
instance backing the test.Model
instance backing the test.newModel()
protected Model newModel()
Model
instance backing the test.Model
instance backing the test.getModel()
public final void testJomcToolNullPointerException() throws Exception
Exception
public final void testJomcToolNotNull() throws Exception
Exception
public final void testVelocityTemplates() throws Exception
Exception
public final void testDefaultLogLevel() throws Exception
Exception
public final void testLogLevel() throws Exception
Exception
public final void testDefaultTemplateProfile() throws Exception
Exception
public final void testTemplateProfile() throws Exception
Exception
public final void testIndentation() throws Exception
Exception
public final void testVelocityEngine() throws Exception
Exception
public final void testVelocityContext() throws Exception
Exception
public final void testDefaultTemplateEncoding() throws Exception
Exception
public final void testTemplateEncoding() throws Exception
Exception
public final void testInputEncoding() throws Exception
Exception
public final void testOutputEncoding() throws Exception
Exception
public final void testLineSeparator() throws Exception
Exception
public final void testJomcToolModelObjectsNotFound() throws Exception
Exception
public final void testJavaIdentifier() throws Exception
Exception
public final void testJavaConstantName() throws Exception
Exception
public final void testJavaFieldName() throws Exception
Exception
public final void testJavaMethodParameterName() throws Exception
Exception
public final void testParentTemplateProfile() throws Exception
Exception
public static void assertNullPointerException(NullPointerException e)
public static void assertIllegalArgumentException(IllegalArgumentException e)
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.