JSF Test Framework: HtmlUnit 1.1.2

org.jboss.test.faces.htmlunit
Class HtmlUnitRule

java.lang.Object
  extended by org.jboss.test.faces.FacesRule
      extended by org.jboss.test.faces.htmlunit.HtmlUnitRule
All Implemented Interfaces:
EventListener, javax.servlet.ServletRequestListener, org.junit.rules.MethodRule

public class HtmlUnitRule
extends FacesRule

Author:
asmirnov

Constructor Summary
protected HtmlUnitRule(HtmlUnitEnvironment environment)
           
 
Method Summary
static HtmlUnitRule create()
           
static HtmlUnitRule create(ApplicationServer server)
           
<P extends com.gargoylesoftware.htmlunit.Page>
P
getPage(String url)
           
 
Methods inherited from class org.jboss.test.faces.FacesRule
after, apply, before, createFacesRequest, createFacesRequest, getApplication, getLifecycle, getServer, requestDestroyed, requestInitialized, setContextAttribute, setSessionAttribute, withContent, withFilter, withInitParameter, withListener, withResource, withResource, withWebRoot, withWebRoot, withWebRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUnitRule

protected HtmlUnitRule(HtmlUnitEnvironment environment)
Method Detail

create

public static HtmlUnitRule create()

create

public static HtmlUnitRule create(ApplicationServer server)

getPage

public <P extends com.gargoylesoftware.htmlunit.Page> P getPage(String url)
                                                     throws com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException,
                                                            MalformedURLException,
                                                            IOException
Throws:
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException
MalformedURLException
IOException

JSF Test Framework: HtmlUnit 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.