public abstract class AbstractViewControllerTestCase extends AbstractJsfTestCase
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.
application, config, externalContext, facesContext, facesContextFactory, lifecycle, lifecycleFactory, renderKit, request, response, servletContext, session
Constructor and Description |
---|
AbstractViewControllerTestCase(String name)
Construct a new instance of this test case.
|
Modifier and Type | Method and Description |
---|---|
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. |
setUp, tearDown
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
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
public AbstractViewControllerTestCase(String name)
Construct a new instance of this test case.
name
- Test case nameprotected 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 messagesCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.