org.jboss.jsfunit.test.richfaces
Class RichDropDownMenuTest

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

public class RichDropDownMenuTest
extends org.apache.cactus.ServletTestCase

Peform JSFUnit tests on RichFaces demo application.

Author:
Stan Silvert

Field Summary
 
Fields inherited from class org.apache.cactus.ServletTestCase
config, request, response, session
 
Constructor Summary
RichDropDownMenuTest()
           
 
Method Summary
static junit.framework.Test suite()
           
 void testDropDownMenu()
           
 void testDropDownMenuWithIE6()
           
 void testServerModeDropDownMenu()
           
 void testServerModeDropDownMenuWithIE6()
          This one fails for all kinds of weird reasons.
 
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, setUp, 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

RichDropDownMenuTest

public RichDropDownMenuTest()
Method Detail

testDropDownMenuWithIE6

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

testDropDownMenu

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

testServerModeDropDownMenuWithIE6

public void testServerModeDropDownMenuWithIE6()
                                       throws IOException,
                                              SAXException
This one fails for all kinds of weird reasons. Commenting out for now. public void testClickHomePageLink() throws IOException, SAXException { JSFSession jsfSession = JSFSessionFactory.makeSession("/richfaces/dropDownMenu.jsf"); JSFClientSession client = jsfSession.getJSFClientSession(); jsfSession.getWebClient().setThrowExceptionOnFailingStatusCode(false); client.click("jsfunitHomePageLink"); String newUrl = client.getContentPage().getWebResponse().getUrl().toString(); assertEquals("http://www.jboss.org/jsfunit/", newUrl); }

Throws:
IOException
SAXException

testServerModeDropDownMenu

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

suite

public static junit.framework.Test suite()


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