|
||||||||||
| 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.cactus.internal.AbstractCactusTestCase
org.apache.cactus.ServletTestCase
org.jboss.jsfunit.jsfsession.hellojsf.HelloJSFIntegrationTest
public class HelloJSFIntegrationTest
This class does tests using only the JSFUnit framework package along with raw HtmlUnit calls. I don't recommend that you use the lower-level API shown here, but it can be useful to see how JSFUnit works. See the FacadeAPITest or SimplifiedHelloJSFIntegrationTest for examples using the simpler JSFClientSession API.
| Field Summary |
|---|
| Fields inherited from class org.apache.cactus.ServletTestCase |
|---|
config, request, response, session |
| Constructor Summary | |
|---|---|
HelloJSFIntegrationTest()
|
|
| Method Summary | |
|---|---|
void |
setUp()
Start a JSFUnit session by getting the /index.faces page. |
static junit.framework.Test |
suite()
|
void |
testFacesContextSerializable()
|
void |
testGoodbyeButton()
|
void |
testInitialPage()
The initial page was called up in the setUp() method. |
void |
testInputValidation()
|
void |
testValidInput()
This demonstrates how to test managed beans. |
| Methods inherited from class org.apache.cactus.ServletTestCase |
|---|
createProtocolHandler |
| Methods inherited from class org.apache.cactus.internal.AbstractCactusTestCase |
|---|
runBare, runBareServer |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, 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 |
| Methods inherited from interface org.apache.cactus.internal.CactusTestCase |
|---|
runBareServer |
| Constructor Detail |
|---|
public HelloJSFIntegrationTest()
| Method Detail |
|---|
public void setUp()
throws IOException
setUp in class junit.framework.TestCaseIOExceptionpublic static junit.framework.Test suite()
public void testInitialPage()
throws IOException,
SAXException
IOException
SAXException
public void testInputValidation()
throws IOException,
SAXException
IOException
SAXException
public void testValidInput()
throws IOException,
SAXException
IOException
SAXException
public void testGoodbyeButton()
throws IOException,
SAXException
IOException
SAXException
public void testFacesContextSerializable()
throws IOException,
SAXException
IOException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||