Package org.jenkinsci.test.acceptance.po
Class ToolInstallation
- java.lang.Object
-
- org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
-
- org.jenkinsci.test.acceptance.po.PageAreaImpl
-
- org.jenkinsci.test.acceptance.po.ToolInstallation
-
- All Implemented Interfaces:
CapybaraPortingLayer
,Control.Owner
,PageArea
- Direct Known Subclasses:
AntInstallation
,GradleInstallation
,GroovyInstallation
,JdkInstallation
,JGitInstallation
,MavenInstallation
,MSBuildInstallation
public abstract class ToolInstallation extends PageAreaImpl
- Author:
- ogondza
- See Also:
ToolInstallationPageObject
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
CapybaraPortingLayerImpl.Finder<R>, CapybaraPortingLayerImpl.Resolver
-
-
Field Summary
Fields Modifier and Type Field Description Control
name
-
Fields inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
driver, injector, LABEL_TO_INPUT_XPATH, time
-
Fields inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
by
-
-
Constructor Summary
Constructors Constructor Description ToolInstallation(Jenkins jenkins, String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T extends ToolInstallation>
TaddTool(Jenkins jenkins, Class<T> type)
static <T extends ToolInstallation>
TaddTool(Jenkins jenkins, Class<T> type, String pathPrefix, Runnable action)
static ConfigurablePageObject
ensureConfigPage(Jenkins jenkins)
protected String
fakeHome(String binary, String homeEnvName)
ConfigurablePageObject
getPage()
protected static ConfigurablePageObject
getPageObject(Jenkins jenkins)
ToolInstallation
installedIn(String home)
static <T extends ToolInstallation>
voidinstallTool(Jenkins jenkins, Class<T> type, String name, String version)
static <T extends ToolInstallation>
voidinstallTool(Jenkins jenkins, Class<T> type, String name, String version, String pathPrefix, Runnable action)
ToolInstallation
installVersion(String version)
static void
waitForUpdates(Jenkins jenkins, Class<? extends ToolInstallation> type)
-
Methods inherited from class org.jenkinsci.test.acceptance.po.PageAreaImpl
control, control, createPageArea, getPath, getPath, getPath, path, self
-
Methods inherited from class org.jenkinsci.test.acceptance.po.CapybaraPortingLayerImpl
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, elasticSleep, executeScript, fillIn, find, findCaption, findCaption, findIfNotVisible, getCurrentUrl, getCurrentUrlWithFragment, getElement, getPageContent, getPageSource, getPageSource, getPath, handleAlert, isHiddenOrStale, isStale, last, lastIfNotVisible, newInstance, resource, runThenConfirmAlert, runThenConfirmAlert, runThenHandleAlert, runThenHandleAlert, runThenHandleDialog, sleep, visit, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jenkinsci.test.acceptance.po.CapybaraPortingLayer
all, blur, check, check, check, choose, clickButton, clickLink, confirmAlert, executeScript, fillIn, find, findIfNotVisible, getElement, getPageSource, last, lastIfNotVisible, runThenConfirmAlert, waitFor, waitFor, waitFor, waitFor, waitFor, waitForCond, waitForCond
-
-
-
-
Field Detail
-
name
public final Control name
-
-
Method Detail
-
waitForUpdates
public static void waitForUpdates(Jenkins jenkins, Class<? extends ToolInstallation> type)
-
addTool
public static <T extends ToolInstallation> T addTool(Jenkins jenkins, Class<T> type, String pathPrefix, Runnable action)
-
addTool
public static <T extends ToolInstallation> T addTool(Jenkins jenkins, Class<T> type)
-
installTool
public static <T extends ToolInstallation> void installTool(Jenkins jenkins, Class<T> type, String name, String version)
-
installTool
public static <T extends ToolInstallation> void installTool(Jenkins jenkins, Class<T> type, String name, String version, String pathPrefix, Runnable action)
-
ensureConfigPage
public static ConfigurablePageObject ensureConfigPage(Jenkins jenkins)
-
getPageObject
protected static ConfigurablePageObject getPageObject(Jenkins jenkins)
-
getPage
public ConfigurablePageObject getPage()
- Specified by:
getPage
in interfacePageArea
- Overrides:
getPage
in classPageAreaImpl
-
installVersion
public ToolInstallation installVersion(String version)
-
installedIn
public ToolInstallation installedIn(String home)
-
-