Class OldEditGeneralConfiguration
- java.lang.Object
-
- com.atlassian.confluence.it.admin.EditGeneralConfiguration
-
- com.atlassian.confluence.it.admin.OldEditGeneralConfiguration
-
public class OldEditGeneralConfiguration extends EditGeneralConfiguration
Allows setting and retrieving values from the general configuration section of theAdminConsole
.
-
-
Field Summary
Fields Modifier and Type Field Description protected net.sourceforge.jwebunit.junit.WebTester
webTester
protected String
workingForm
-
Constructor Summary
Constructors Modifier Constructor Description protected
OldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(String optionName)
boolean
isRemoteApiEnabled()
protected void
setOption(boolean enabled, 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 aViewGeneralConfiguration
, 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
-
-
-
-
Field Detail
-
webTester
protected final net.sourceforge.jwebunit.junit.WebTester webTester
-
workingForm
protected final String workingForm
-
-
Constructor Detail
-
OldEditGeneralConfiguration
protected OldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, 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 aViewGeneralConfiguration
, allowing the view mode of the General Config to be tested.- Overrides:
submitAndView
in classEditGeneralConfiguration
-
submitAndReEdit
public OldEditGeneralConfiguration submitAndReEdit()
Submit and immediately click edit so that more editing can be done.- Overrides:
submitAndReEdit
in classEditGeneralConfiguration
-
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 classEditGeneralConfiguration
-
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 classEditGeneralConfiguration
-
isRemoteApiEnabled
public boolean isRemoteApiEnabled()
-
setRemoteApiEnabled
public OldEditGeneralConfiguration setRemoteApiEnabled(boolean enabled)
-
isOptionEnabled
protected boolean isOptionEnabled(String optionName)
-
setOption
protected void setOption(boolean enabled, String name)
-
-