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) |
org.jomc.tools.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 org.jomc.tools.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 org.jomc.tools.JomcTool getJomcTool()
JomcTool instance tests are performed with.JomcTool instance tests are performed with.newJomcTool()protected org.jomc.tools.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
Exceptionpublic final void testJomcToolNotNull() throws Exception
Exceptionpublic final void testVelocityTemplates() throws Exception
Exceptionpublic final void testDefaultLogLevel() throws Exception
Exceptionpublic final void testLogLevel() throws Exception
Exceptionpublic final void testDefaultTemplateProfile() throws Exception
Exceptionpublic final void testTemplateProfile() throws Exception
Exceptionpublic final void testIndentation() throws Exception
Exceptionpublic final void testVelocityEngine() throws Exception
Exceptionpublic final void testVelocityContext() throws Exception
Exceptionpublic final void testDefaultTemplateEncoding() throws Exception
Exceptionpublic final void testTemplateEncoding() throws Exception
Exceptionpublic final void testInputEncoding() throws Exception
Exceptionpublic final void testOutputEncoding() throws Exception
Exceptionpublic final void testLineSeparator() throws Exception
Exceptionpublic final void testJomcToolModelObjectsNotFound() throws Exception
Exceptionpublic final void testJavaIdentifier() throws Exception
Exceptionpublic final void testJavaConstantName() throws Exception
Exceptionpublic final void testJavaFieldName() throws Exception
Exceptionpublic final void testJavaMethodParameterName() throws Exception
Exceptionpublic final void testParentTemplateProfile() throws Exception
Exceptionpublic static void assertNullPointerException(NullPointerException e)
public static void assertIllegalArgumentException(IllegalArgumentException e)
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.