|
||||||||||
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.turbine.test.BaseTestCase
org.apache.turbine.modules.ActionLoaderTest
public class ActionLoaderTest
This test case is to verify whether exceptions in Velocity actions are properly bubbled up when action.event.bubbleexception=true. Or, if action.event.bubbleexception=false, then the exceptions should be logged and sunk.
Constructor Summary | |
---|---|
ActionLoaderTest(String arg0)
Constructor for VelocityErrorScreenTest. |
Method Summary | |
---|---|
protected void |
setUp()
|
protected void |
tearDown()
|
void |
testActionEventBubblesException()
This unit test verifies that if an Action Event doEventSubmit_ is called, and it throws an Exception, the exception is bubbled up out of the ActionLoader... |
void |
testActionEventDoesntBubbleException()
This unit test verifies that if an Action Event doEventSubmit_ is called, and it throws an Exception, if the action.event.bubbleexception property is set to false then the exception is NOT bubbled up |
void |
testDoPerformBubblesException()
This unit test verifies that if your standard doPerform is called, and it throws an Exception, the exception is bubbled up out of the ActionLoader... |
void |
testDoPerformDoesntBubbleException()
This unit test verifies that if your standard doPerform is called, and it throws an Exception, if the action.event.bubbleexception property is set to false then the exception is NOT bubbled up |
void |
testDoPerformWithPipelineData()
|
void |
testDoPerformWithRunData()
|
void |
testNonexistentActionCausesError()
|
Methods inherited from class org.apache.turbine.test.BaseTestCase |
---|
getMockRequest, getPipelineData, getRunData |
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 |
---|
public ActionLoaderTest(String arg0) throws Exception
arg0
-
Exception
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void testDoPerformBubblesException() throws Exception
Exception
- If something goes wrong with the unit testpublic void testActionEventBubblesException() throws Exception
Exception
- If something goes wrong with the unit testpublic void testDoPerformDoesntBubbleException() throws Exception
Exception
- If something goes wrong with the unit testpublic void testActionEventDoesntBubbleException() throws Exception
Exception
- If something goes wrong with the unit testpublic void testNonexistentActionCausesError() throws Exception
Exception
public void testDoPerformWithRunData() throws Exception
Exception
public void testDoPerformWithPipelineData() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |