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.WebTesterwebTesterprotected StringworkingForm
-
Constructor Summary
Constructors Modifier Constructor Description protectedOldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OldEditGeneralConfigurationeditConfigurationFromAnywhere()Factory method to visit the edit configuration screen from anywhere.static OldEditGeneralConfigurationeditConfigurationFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)protected static OldEditGeneralConfigurationeditConfigurationFromView(net.sourceforge.jwebunit.junit.WebTester webTester)protected booleanisOptionEnabled(String optionName)booleanisRemoteApiEnabled()protected voidsetOption(boolean enabled, String name)OldEditGeneralConfigurationsetRemoteApiEnabled(boolean enabled)voidsubmit()Submit and don't construct a new state.OldEditGeneralConfigurationsubmitAndReEdit()Submit and immediately click edit so that more editing can be done.ViewGeneralConfigurationsubmitAndView()Submit and return aViewGeneralConfiguration, allowing the view mode of the General Config to be tested.OldEditGeneralConfigurationsubmitExpectingErrors()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:
submitAndViewin classEditGeneralConfiguration
-
submitAndReEdit
public OldEditGeneralConfiguration submitAndReEdit()
Submit and immediately click edit so that more editing can be done.- Overrides:
submitAndReEditin 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:
submitExpectingErrorsin 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:
submitin 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)
-
-