com.atlassian.confluence.it
Class WebTesterFactory

java.lang.Object
  extended by com.atlassian.confluence.it.WebTesterFactory

public class WebTesterFactory
extends java.lang.Object

Creates and returns new JWebUnit WebTester objects with the correct parameters set. Use this class rather than calling WebTester.WebTester();

See Also:
ConfluenceHtmlUnitDialog

Constructor Summary
WebTesterFactory()
           
 
Method Summary
static void configureWebTester(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String baseUrl, boolean enableJavascript)
          This should only be used in JWebUnit WebTestCases, where the WebTester has already been created.
static net.sourceforge.jwebunit.junit.WebTester getInstance(java.lang.String baseUrl)
          Returns a web tester with scripting disabled.
static net.sourceforge.jwebunit.junit.WebTester getInstance(java.lang.String baseUrl, boolean enableJavascript)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebTesterFactory

public WebTesterFactory()
Method Detail

getInstance

public static net.sourceforge.jwebunit.junit.WebTester getInstance(java.lang.String baseUrl)
Returns a web tester with scripting disabled.


getInstance

public static net.sourceforge.jwebunit.junit.WebTester getInstance(java.lang.String baseUrl,
                                                                   boolean enableJavascript)

configureWebTester

public static void configureWebTester(net.sourceforge.jwebunit.junit.WebTester webTester,
                                      java.lang.String baseUrl,
                                      boolean enableJavascript)
This should only be used in JWebUnit WebTestCases, where the WebTester has already been created.

See Also:
getInstance(String, boolean)


Copyright © 2003-2010 Atlassian. All Rights Reserved.