|
||||||||||
| 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.shale.test.base.AbstractJsfTestCase
org.apache.shale.test.base.AbstractViewControllerTestCase
org.apache.myfaces.test.AbstractTomahawkViewControllerTestCase
public class AbstractTomahawkViewControllerTestCase
Abstract Shale Test base class, which sets up the JSF environment. If the test
overrides setUp() and/or tearDown(), then those
methods but call the overwitten method to insure a valid test environment.
| Field Summary |
|---|
| Fields inherited from class org.apache.shale.test.base.AbstractJsfTestCase |
|---|
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session |
| Constructor Summary | |
|---|---|
AbstractTomahawkViewControllerTestCase(String name)
Construct a new instance of the test. |
|
| Method Summary | |
|---|---|
protected void |
assertIdExists(String id)
Verify the following: id is not null Response is complete Responce contains the id |
protected void |
setUp()
Setup the test environment, including the following: Set the Application Map. Set a response writer Add Tomahawk's renderers to the faces context. |
protected void |
tearDown()
Tear down the test environment. |
| Methods inherited from class org.apache.shale.test.base.AbstractViewControllerTestCase |
|---|
checkMessageCount, checkMessageCount |
| 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTomahawkViewControllerTestCase(String name)
name - Name of the test.| Method Detail |
|---|
protected void setUp()
throws Exception
setUp in class org.apache.shale.test.base.AbstractJsfTestCaseException
protected void tearDown()
throws Exception
tearDown in class org.apache.shale.test.base.AbstractJsfTestCaseExceptionprotected void assertIdExists(String id)
id - ID to verify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||