org.jboss.jsfunit.jsfsession.hellojsf
Class NestedNamingContainersTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.cactus.internal.AbstractCactusTestCase
              extended by org.apache.cactus.ServletTestCase
                  extended by org.jboss.jsfunit.jsfsession.hellojsf.NestedNamingContainersTest
All Implemented Interfaces:
junit.framework.Test, org.apache.cactus.internal.CactusTestCase

public class NestedNamingContainersTest
extends org.apache.cactus.ServletTestCase

Test the facade API on a page that contains nested subviews/NamingContainers.

Author:
Stan Silvert

Field Summary
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Constructor Summary
NestedNamingContainersTest()
           
 
Method Summary
 void setUp()
          Start a JSFUnit session by getting the /index.faces page.
static junit.framework.Test suite()
           
 void testComponentIDNotFound()
           
 void testDualFormAmbiguity()
           
 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

NestedNamingContainersTest

public NestedNamingContainersTest()
Method Detail

setUp

public void setUp()
           throws IOException
Start a JSFUnit session by getting the /index.faces page.

Overrides:
setUp in class junit.framework.TestCase
Throws:
IOException

suite

public static junit.framework.Test suite()
Returns:
the suite of tests being tested

testInitialPage

public void testInitialPage()
                     throws IOException
The initial page was called up in the setUp() method. This shows some simple JSFUnit tests you can do on that page.

Throws:
IOException

testInputValidation

public void testInputValidation()
                         throws IOException
Throws:
IOException

testValidInput

public void testValidInput()
                    throws IOException
This demonstrates how to test managed beans.

Throws:
IOException

testGoodbyeButton

public void testGoodbyeButton()
                       throws IOException
Throws:
IOException

testDualFormAmbiguity

public void testDualFormAmbiguity()
                           throws IOException
Throws:
IOException

testComponentIDNotFound

public void testComponentIDNotFound()
                             throws IOException
Throws:
IOException


Copyright © 2007-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.