Class EditGeneralConfiguration
- java.lang.Object
-
- com.atlassian.confluence.it.admin.EditGeneralConfiguration
-
- Direct Known Subclasses:
OldEditGeneralConfiguration
public class EditGeneralConfiguration extends Object
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
EditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
Method Summary
-
-
-
Field Detail
-
webTester
protected final net.sourceforge.jwebunit.junit.WebTester webTester
-
workingForm
protected final String workingForm
-
-
Constructor Detail
-
EditGeneralConfiguration
protected EditGeneralConfiguration(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
-
Method Detail
-
editConfigurationFromAnywhere
public static EditGeneralConfiguration editConfigurationFromAnywhere()
Factory method to visit the edit configuration screen from anywhere.- Returns:
- a new EditGeneralConfiguration ready to use.
-
editConfigurationFromAnywhere
public static EditGeneralConfiguration editConfigurationFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
-
editConfigurationFromView
protected static EditGeneralConfiguration 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.
-
submitAndReEdit
public EditGeneralConfiguration submitAndReEdit()
Submit and immediately click edit so that more editing can be done.
-
submitExpectingErrors
public EditGeneralConfiguration submitExpectingErrors()
Submit, expecting that we'll be taken back to the edit page and that there will be errors shown.
-
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.
-
cancel
public ViewSecurityConfiguration cancel()
-
setCamelCaseEnabled
public EditGeneralConfiguration setCamelCaseEnabled(boolean enabled)
-
setBaseUrl
public EditGeneralConfiguration setBaseUrl(String domainName)
-
setCustomContactAdministratorsMessage
public EditGeneralConfiguration setCustomContactAdministratorsMessage(String message)
-
setContactAdministratorsFormEnabled
public EditGeneralConfiguration setContactAdministratorsFormEnabled(boolean enabled)
-
setGzipResponseEncodingEnabled
public EditGeneralConfiguration setGzipResponseEncodingEnabled(boolean enabled)
-
getAttachmentMaxSize
public String getAttachmentMaxSize()
-
setAttachmentMaxSize
public EditGeneralConfiguration setAttachmentMaxSize(String max)
-
getMaxAttachmentsInUI
public long getMaxAttachmentsInUI()
-
setMaxAttachmentsInUI
public EditGeneralConfiguration setMaxAttachmentsInUI(long max)
-
isOptionEnabled
protected boolean isOptionEnabled(String optionName)
-
setOption
protected void setOption(boolean enabled, String name)
-
-