org.apache.velocity.test
Class VarargMethodsTestCase

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

public class VarargMethodsTestCase
extends BaseEvalTestCase

Used to check that vararg method calls on references work properly


Nested Class Summary
static class VarargMethodsTestCase.NastyTool
           
static class VarargMethodsTestCase.NiceTool
           
 
Field Summary
 
Fields inherited from class org.apache.velocity.test.BaseEvalTestCase
context, DEBUG, engine, log
 
Constructor Summary
VarargMethodsTestCase(String name)
           
 
Method Summary
protected  void setContext(VelocityContext context)
           
 void testDoubles()
           
 void testFloatToDoubleVarArg()
           
 void testInts()
           
 void testIntVsDoubles()
           
 void testNoArgs()
           
 void testNullToPrimitiveVarArg()
           
 void testObjectVarArgVsObjectEtc()
           
 void testObjectVarArgVsObjectVelocity605()
           
 void testPassingArrayToVarArgVelocity642()
           
 void testStrings()
           
 void testStringsVsObjectsAKASubclassVararg()
           
 void testStringVsStrings()
           
 void testVelocity651()
           
 
Methods inherited from class org.apache.velocity.test.BaseEvalTestCase
assertContextValue, assertEvalEquals, assertEvalException, assertEvalException, assertEvalExceptionAt, assertEvalExceptionAt, evaluate, setProperties, setUp, tearDown, testBase
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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

VarargMethodsTestCase

public VarargMethodsTestCase(String name)
Method Detail

setContext

protected void setContext(VelocityContext context)
Overrides:
setContext in class BaseEvalTestCase

testStrings

public void testStrings()

testDoubles

public void testDoubles()

testFloatToDoubleVarArg

public void testFloatToDoubleVarArg()

testStringVsStrings

public void testStringVsStrings()

testIntVsDoubles

public void testIntVsDoubles()

testInts

public void testInts()

testStringsVsObjectsAKASubclassVararg

public void testStringsVsObjectsAKASubclassVararg()

testObjectVarArgVsObjectEtc

public void testObjectVarArgVsObjectEtc()

testObjectVarArgVsObjectVelocity605

public void testObjectVarArgVsObjectVelocity605()

testNoArgs

public void testNoArgs()

testPassingArrayToVarArgVelocity642

public void testPassingArrayToVarArgVelocity642()

testNullToPrimitiveVarArg

public void testNullToPrimitiveVarArg()

testVelocity651

public void testVelocity651()


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