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  org.apache.velocity.runtime.resource.util.StringResourceRepository getRepo(String name, org.apache.velocity.app.VelocityEngine engine)
           
protected  org.apache.velocity.app.VelocityEngine newStringEngine(String repoName, boolean isStatic)
           
protected  String render(org.apache.velocity.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 org.apache.velocity.app.VelocityEngine newStringEngine(String repoName,
                                                                 boolean isStatic)

getRepo

protected org.apache.velocity.runtime.resource.util.StringResourceRepository getRepo(String name,
                                                                                     org.apache.velocity.app.VelocityEngine engine)

render

protected String render(org.apache.velocity.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-2010 The Apache Software Foundation. All Rights Reserved.