Class OldEditGeneralConfiguration
java.lang.Object
com.atlassian.confluence.it.admin.EditGeneralConfiguration
com.atlassian.confluence.it.admin.OldEditGeneralConfiguration
Allows setting and retrieving values from the general configuration section of the
AdminConsole.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final net.sourceforge.jwebunit.junit.WebTesterprotected final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm) -
Method Summary
Modifier and TypeMethodDescriptionstatic OldEditGeneralConfigurationFactory 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) booleanprotected voidsetRemoteApiEnabled(boolean enabled) voidsubmit()Submit and don't construct a new state.Submit and immediately click edit so that more editing can be done.Submit and return aViewGeneralConfiguration, allowing the view mode of the General Config to be tested.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, getIndexingLanguage, getMaxAttachmentsInUI, setAttachmentMaxSize, setBaseUrl, setCamelCaseEnabled, setContactAdministratorsFormEnabled, setCustomContactAdministratorsMessage, setGzipResponseEncodingEnabled, setMaxAttachmentsInUI
-
Field Details
-
webTester
protected final net.sourceforge.jwebunit.junit.WebTester webTester -
workingForm
-
-
Constructor Details
-
OldEditGeneralConfiguration
protected OldEditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
-
Method Details
-
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
Submit and return aViewGeneralConfiguration, allowing the view mode of the General Config to be tested.- Overrides:
submitAndViewin classEditGeneralConfiguration
-
submitAndReEdit
Submit and immediately click edit so that more editing can be done.- Overrides:
submitAndReEditin classEditGeneralConfiguration
-
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
-
isOptionEnabled
-
setOption
-