org.jboss.jsfunit.jsfsession.hellojsf
Class JSF1_2Test

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.JSF1_2Test
All Implemented Interfaces:
junit.framework.Test, org.apache.cactus.internal.CactusTestCase

public class JSF1_2Test
extends org.apache.cactus.ServletTestCase

This class does all of the tests in the FacadeAPITest, but it does it against a form that uses a and prependId="false". These tests will only run in a JSF 1.2 compatible environment.

Author:
Stan Silvert

Field Summary
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Constructor Summary
JSF1_2Test()
           
 
Method Summary
 void setUp()
          Start a JSFUnit session by getting the /index.jsf.1.2.faces page.
static junit.framework.Test suite()
           
 void testClickALink()
           
 void testClickCommandLink()
           
 void testCommandLinkWithoutViewChange()
           
 void testManagedBeanValue()
           
 void testServerSideComponentValue()
           
 void testSetCheckbox()
           
 void testSetParamAndSubmit()
           
 
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

JSF1_2Test

public JSF1_2Test()
Method Detail

setUp

public void setUp()
           throws IOException,
                  SAXException
Start a JSFUnit session by getting the /index.jsf.1.2.faces page. Note that because setUp() is called before each test, a new HttpSession will be created each time a test is run.

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

suite

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

testSetParamAndSubmit

public void testSetParamAndSubmit()
                           throws IOException,
                                  SAXException
Throws:
IOException
SAXException

testSetCheckbox

public void testSetCheckbox()
                     throws IOException,
                            SAXException
Throws:
IOException
SAXException

testClickCommandLink

public void testClickCommandLink()
                          throws IOException,
                                 SAXException
Throws:
IOException
SAXException

testCommandLinkWithoutViewChange

public void testCommandLinkWithoutViewChange()
                                      throws IOException,
                                             SAXException
Throws:
IOException
SAXException

testServerSideComponentValue

public void testServerSideComponentValue()
                                  throws IOException,
                                         SAXException
Throws:
IOException
SAXException

testManagedBeanValue

public void testManagedBeanValue()
                          throws IOException,
                                 SAXException
Throws:
IOException
SAXException

testClickALink

public void testClickALink()
                    throws IOException,
                           SAXException
Throws:
IOException
SAXException


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