public class EditMaintenance extends Object
Modifier and Type | Field and Description |
---|---|
protected net.sourceforge.jwebunit.junit.WebTester |
webTester |
protected String |
workingForm |
Modifier | Constructor and Description |
---|---|
protected |
EditMaintenance(net.sourceforge.jwebunit.junit.WebTester webTester,
String workingForm) |
Modifier and Type | Method and 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 a
ViewGeneralConfiguration , allowing the
view mode of the General Config to be tested. |
protected final net.sourceforge.jwebunit.junit.WebTester webTester
protected final String workingForm
protected EditMaintenance(net.sourceforge.jwebunit.junit.WebTester webTester, String workingForm)
public static EditMaintenance editMaintenanceFromAnywhere()
public static EditMaintenance editMaintenanceFromAnywhere(net.sourceforge.jwebunit.junit.WebTester webTester)
public static EditMaintenance editMaintenanceFromView(net.sourceforge.jwebunit.junit.WebTester webTester)
public ViewMaintenance submitAndView()
ViewGeneralConfiguration
, allowing the
view mode of the General Config to be tested.public void submit()
public ViewMaintenance cancel()
public EditMaintenance setReadOnlyModeEnabled(boolean enabled)
public EditMaintenance setBannerMessageEnabled(boolean enabled)
public EditMaintenance setBannerMessage(String bannerMessage)
protected boolean isOptionEnabled(String optionName)
protected void setOption(boolean enabled, String name)
Copyright © 2003–2020 Atlassian. All rights reserved.