|
||||||||||
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.BaseTestCase
org.apache.velocity.test.MethodOverloadingTestCase
public class MethodOverloadingTestCase
Test a reported bug in which method overloading throws IllegalArgumentException after a null return value. (VELOCITY-132).
Field Summary |
---|
Fields inherited from interface org.apache.velocity.runtime.log.LogChute |
---|
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX |
Fields inherited from interface org.apache.velocity.test.TemplateTestBase |
---|
RESULT_DIR, TEST_CASE_PROPERTIES, TEST_COMPARE_DIR, TEST_RESULT_DIR |
Constructor Summary | |
---|---|
MethodOverloadingTestCase(String name)
Default constructor. |
Method Summary | |
---|---|
void |
init(RuntimeServices rs)
|
boolean |
isLevelEnabled(int level)
|
void |
log(int level,
String message)
|
void |
log(int level,
String message,
Throwable t)
|
String |
overloadedMethod(Integer s)
|
String |
overloadedMethod(String s)
|
String |
overloadedMethod2(Integer s)
|
String |
overloadedMethod2(String i)
|
void |
setUp()
|
void |
setupContext(Context context)
|
static junit.framework.Test |
suite()
|
void |
testFile(String basefilename)
|
void |
testMethodOverloading()
|
void |
testParsedMethodOverloading()
|
Methods inherited from class org.apache.velocity.test.BaseTestCase |
---|
assureResultsDirectoryExists, getFileContents, getFileName, getFileName, getTestCaseName, isMatch, isMatch, normalizeNewlines |
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 MethodOverloadingTestCase(String name)
Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
public void testMethodOverloading() throws Exception
Exception
public void testParsedMethodOverloading() throws Exception
Exception
public void testFile(String basefilename) throws Exception
Exception
public void setupContext(Context context)
public String overloadedMethod(Integer s)
public String overloadedMethod(String s)
public String overloadedMethod2(Integer s)
public String overloadedMethod2(String i)
public void log(int level, String message)
log
in interface LogChute
public void init(RuntimeServices rs)
init
in interface LogChute
public void log(int level, String message, Throwable t)
log
in interface LogChute
public boolean isLevelEnabled(int level)
isLevelEnabled
in interface LogChute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |