com.atlassian.confluence.it.admin
Class OldEditGeneralConfiguration

java.lang.Object
  extended by com.atlassian.confluence.it.admin.EditGeneralConfiguration
      extended by com.atlassian.confluence.it.admin.OldEditGeneralConfiguration

public class OldEditGeneralConfiguration
extends EditGeneralConfiguration

Allows setting and retrieving values from the general configuration section of the AdminConsole.


Field Summary
protected  net.sourceforge.jwebunit.junit.WebTester webTester
           
protected  java.lang.String workingForm
           
 
Constructor Summary
protected OldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, java.lang.String workingForm)
           
 
Method Summary
static OldEditGeneralConfiguration editConfigurationFromAnywhere()
          Factory method to visit the edit configuration screen from anywhere.
static OldEditGeneralConfiguration editConfigurationFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
           
protected static OldEditGeneralConfiguration editConfigurationFromView(net.sourceforge.jwebunit.junit.WebTester webTester)
           
protected  boolean isOptionEnabled(java.lang.String optionName)
           
 boolean isRemoteApiEnabled()
           
protected  void setOption(boolean enabled, java.lang.String name)
           
 OldEditGeneralConfiguration setRemoteApiEnabled(boolean enabled)
           
 void submit()
          Submit and don't construct a new state.
 OldEditGeneralConfiguration submitAndReEdit()
          Submit and immediately click edit so that more editing can be done.
 ViewGeneralConfiguration submitAndView()
          Submit and return a ViewGeneralConfiguration, allowing the view mode of the General Config to be tested.
 OldEditGeneralConfiguration submitExpectingErrors()
          Submit, expecting that we'll be taken back to the edit page and that there will be errors shown.
 
Methods inherited from class com.atlassian.confluence.it.admin.EditGeneralConfiguration
cancel, getAttachmentMaxSize, getMaxAttachmentsInUI, setAttachmentMaxSize, setBaseUrl, setCamelCaseEnabled, setContactAdministratorsFormEnabled, setCustomContactAdministratorsMessage, setGzipResponseEncodingEnabled, setMaxAttachmentsInUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

webTester

protected final net.sourceforge.jwebunit.junit.WebTester webTester

workingForm

protected final java.lang.String workingForm
Constructor Detail

OldEditGeneralConfiguration

protected OldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester,
                                      java.lang.String workingForm)
Method Detail

editConfigurationFromAnywhere

public static OldEditGeneralConfiguration editConfigurationFromAnywhere()
Factory method to visit the edit configuration screen from anywhere.

Returns:
a new EditGeneralConfiguration ready to use.

editConfigurationFromAnywhere

public static OldEditGeneralConfiguration editConfigurationFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)

editConfigurationFromView

protected static OldEditGeneralConfiguration editConfigurationFromView(net.sourceforge.jwebunit.junit.WebTester webTester)

submitAndView

public ViewGeneralConfiguration submitAndView()
Submit and return a ViewGeneralConfiguration, allowing the view mode of the General Config to be tested.

Overrides:
submitAndView in class EditGeneralConfiguration

submitAndReEdit

public OldEditGeneralConfiguration submitAndReEdit()
Submit and immediately click edit so that more editing can be done.

Overrides:
submitAndReEdit in class EditGeneralConfiguration

submitExpectingErrors

public OldEditGeneralConfiguration submitExpectingErrors()
Submit, expecting that we'll be taken back to the edit page and that there will be errors shown.

Overrides:
submitExpectingErrors in class EditGeneralConfiguration

submit

public void submit()
Submit and don't construct a new state. Useful in tearDowns when you aren't going to want to do anything with the result.

Overrides:
submit in class EditGeneralConfiguration

isRemoteApiEnabled

public boolean isRemoteApiEnabled()

setRemoteApiEnabled

public OldEditGeneralConfiguration setRemoteApiEnabled(boolean enabled)

isOptionEnabled

protected boolean isOptionEnabled(java.lang.String optionName)

setOption

protected void setOption(boolean enabled,
                         java.lang.String name)


Copyright © 2003-2014 Atlassian. All Rights Reserved.