org.jboss.jsfunit.seam.registration
Class RegistrationTest

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.seam.registration.RegistrationTest
All Implemented Interfaces:
junit.framework.Test, CactusTestCase

public class RegistrationTest
extends ServletTestCase

Simple JSFUnit tests for the Seam Registration Example

Author:
Stan Silvert

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

RegistrationTest

public RegistrationTest()
Method Detail

setUp

public void setUp()
           throws IOException,
                  SAXException
Start a JSFUnit session by getting the /index.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

testGetCurrentViewId

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

testValidation

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

testGoToRegisteredPage

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


Copyright © 2007-2008 JBoss Inc.. All Rights Reserved.