public class Qunit extends Object implements org.junit.rules.MethodRule
This class represents qunit test environment ( html page, java script libraries ... )
Modifier and Type | Class and Description |
---|---|
static class |
Qunit.Builder
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_URL |
Modifier | Constructor and Description |
---|---|
protected |
Qunit() |
Modifier and Type | Method and Description |
---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runners.model.FrameworkMethod method,
Object target) |
static Qunit.Builder |
builder() |
protected String |
getHtmlContent(Object target)
|
com.gargoylesoftware.htmlunit.html.HtmlPage |
getPage()
|
Object |
runScript(String script)
Run JavaScript expression in page context and returns result |
protected void |
setupQunit(org.junit.runners.model.FrameworkMethod method,
Object target) |
protected void |
thearDownQunit(org.junit.runners.model.FrameworkMethod method,
Object target) |
public static final String DEFAULT_URL
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)
apply
in interface org.junit.rules.MethodRule
protected void thearDownQunit(org.junit.runners.model.FrameworkMethod method, Object target)
protected void setupQunit(org.junit.runners.model.FrameworkMethod method, Object target) throws com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException, IOException
com.gargoylesoftware.htmlunit.FailingHttpStatusCodeException
IOException
protected String getHtmlContent(Object target)
target
- public Object runScript(String script)
Run JavaScript expression in page context and returns result
script
- public com.gargoylesoftware.htmlunit.html.HtmlPage getPage()
public static Qunit.Builder builder()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.