Class EditMaintenance
- java.lang.Object
-
- com.atlassian.confluence.it.admin.EditMaintenance
-
public class EditMaintenance extends Object
Allows setting values from the Maintenance screen
-
-
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
EditMaintenance(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewMaintenance
cancel()
static EditMaintenance
editMaintenanceFromAnywhere()
Factory method to visit the edit configuration screen from anywhere.static EditMaintenance
editMaintenanceFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
static EditMaintenance
editMaintenanceFromView(net.sourceforge.jwebunit.junit.WebTester webTester)
protected boolean
isOptionEnabled(String optionName)
EditMaintenance
setBannerMessage(String bannerMessage)
EditMaintenance
setBannerMessageEnabled(boolean enabled)
protected void
setOption(boolean enabled, String name)
EditMaintenance
setReadOnlyModeEnabled(boolean enabled)
void
submit()
Submit and don't construct a new state.ViewMaintenance
submitAndView()
Submit and return aViewGeneralConfiguration
, allowing the view mode of the General Config to be tested.
-
-
-
Field Detail
-
webTester
protected final net.sourceforge.jwebunit.junit.WebTester webTester
-
workingForm
protected final String workingForm
-
-
Constructor Detail
-
EditMaintenance
protected EditMaintenance(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
-
-
Method Detail
-
editMaintenanceFromAnywhere
public static EditMaintenance editMaintenanceFromAnywhere()
Factory method to visit the edit configuration screen from anywhere.- Returns:
- a new EditGeneralConfiguration ready to use.
-
editMaintenanceFromAnywhere
public static EditMaintenance editMaintenanceFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
-
editMaintenanceFromView
public static EditMaintenance editMaintenanceFromView(net.sourceforge.jwebunit.junit.WebTester webTester)
-
submitAndView
public ViewMaintenance submitAndView()
Submit and return aViewGeneralConfiguration
, allowing the view mode of the General Config to be tested.
-
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 ViewMaintenance cancel()
-
setReadOnlyModeEnabled
public EditMaintenance setReadOnlyModeEnabled(boolean enabled)
-
setBannerMessageEnabled
public EditMaintenance setBannerMessageEnabled(boolean enabled)
-
setBannerMessage
public EditMaintenance setBannerMessage(String bannerMessage)
-
isOptionEnabled
protected boolean isOptionEnabled(String optionName)
-
setOption
protected void setOption(boolean enabled, String name)
-
-