org.apache.velocity.test
Class StringResourceLoaderRepositoryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.velocity.test.StringResourceLoaderRepositoryTestCase
All Implemented Interfaces:
junit.framework.Test

public class StringResourceLoaderRepositoryTestCase
extends junit.framework.TestCase

Tests ability to have multiple repositories in the same app.

Version:
$Id: StringResourceLoaderRepositoryTestCase.java 479058 2006-11-25 00:26:32Z henning $
Author:
Nathan Bubna

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

StringResourceLoaderRepositoryTestCase

public StringResourceLoaderRepositoryTestCase(String name)
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

newStringEngine

protected VelocityEngine newStringEngine(String repoName,
                                         boolean isStatic)

getRepo

protected StringResourceRepository getRepo(String name,
                                           VelocityEngine engine)

render

protected String render(Template template)
                 throws Exception
Throws:
Exception

testSharedRepo

public void testSharedRepo()
                    throws Exception
Throws:
Exception

testAlternateStaticRepo

public void testAlternateStaticRepo()
                             throws Exception
Throws:
Exception

testPreCreatedStaticRepo

public void testPreCreatedStaticRepo()
                              throws Exception
Throws:
Exception

testAppRepo

public void testAppRepo()
                 throws Exception
Throws:
Exception

testAlternateAppRepo

public void testAlternateAppRepo()
                          throws Exception
Throws:
Exception

testPreCreatedAppRepo

public void testPreCreatedAppRepo()
                           throws Exception
Throws:
Exception


Copyright © 2000-2008 The Apache Software Foundation. All Rights Reserved.