|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.velocity.test.StringResourceLoaderRepositoryTestCase
public class StringResourceLoaderRepositoryTestCase
Tests ability to have multiple repositories in the same app.
Nested Class Summary | |
---|---|
static class |
StringResourceLoaderRepositoryTestCase.MyRepo
|
Constructor Summary | |
---|---|
StringResourceLoaderRepositoryTestCase(String name)
|
Method Summary | |
---|---|
protected StringResourceRepository |
getRepo(String name,
VelocityEngine engine)
|
protected VelocityEngine |
newStringEngine(String repoName,
boolean isStatic)
|
protected String |
render(Template template)
|
void |
setUp()
|
void |
testAlternateAppRepo()
|
void |
testAlternateStaticRepo()
|
void |
testAppRepo()
|
void |
testPreCreatedAppRepo()
|
void |
testPreCreatedStaticRepo()
|
void |
testSharedRepo()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StringResourceLoaderRepositoryTestCase(String name)
Method Detail |
---|
public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected VelocityEngine newStringEngine(String repoName, boolean isStatic)
protected StringResourceRepository getRepo(String name, VelocityEngine engine)
protected String render(Template template) throws Exception
Exception
public void testSharedRepo() throws Exception
Exception
public void testAlternateStaticRepo() throws Exception
Exception
public void testPreCreatedStaticRepo() throws Exception
Exception
public void testAppRepo() throws Exception
Exception
public void testAlternateAppRepo() throws Exception
Exception
public void testPreCreatedAppRepo() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |