|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase org.apache.shale.test.base.AbstractJsfTestCase org.apache.shale.test.base.AbstractViewControllerTestCase
public abstract class AbstractViewControllerTestCase
Abstract base class for testing ViewController
implementations.
WARNING - If you choose to subclass this class, be sure
your setUp()
and tearDown()
methods call
super.setUp()
and super.tearDown()
respectively,
and that you implement your own suite()
method that exposes
the test methods for your test case.
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 | |
---|---|
AbstractViewControllerTestCase(String name)
Construct a new instance of this test case. |
Method Summary | |
---|---|
protected void |
checkMessageCount(int expected)
Test that the specified number of messages have been queued on the FacesContext instance, without regard to matching a
particular client identifier. |
protected void |
checkMessageCount(String clientId,
int expected)
Test that the specified number of messages have been queued on the FacesContext instance, for the specified client id. |
Methods inherited from class org.apache.shale.test.base.AbstractJsfTestCase |
---|
setUp, tearDown |
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 AbstractViewControllerTestCase(String name)
Construct a new instance of this test case.
name
- Test case nameMethod Detail |
---|
protected void checkMessageCount(int expected)
Test that the specified number of messages have been queued on the
FacesContext
instance, without regard to matching a
particular client identifier.
expected
- The expected number of messagesprotected void checkMessageCount(String clientId, int expected)
Test that the specified number of messages have been queued on the
FacesContext
instance, for the specified client id.
clientId
- Client identifier of the component for which to
count queued messagesexpected
- The expected number of messages
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |