Class WinstoneController
java.lang.Object
org.jenkinsci.test.acceptance.controller.JenkinsController
org.jenkinsci.test.acceptance.controller.LocalController
org.jenkinsci.test.acceptance.controller.WinstoneController
- All Implemented Interfaces:
Closeable
,AutoCloseable
,IJenkinsController
,AutoCleaned
,LogListenable
Launches Jenkins via "java -jar jenkins.war" on the local machine.
- Author:
- Vivek Pandey
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.test.acceptance.controller.LocalController
LocalController.LocalFactoryImpl
-
Field Summary
Fields inherited from class org.jenkinsci.test.acceptance.controller.LocalController
jenkinsHome, logWatcher, process, time, war
Fields inherited from class org.jenkinsci.test.acceptance.controller.JenkinsController
isQuite, STARTUP_TIMEOUT, WORKSPACE
-
Constructor Summary
ConstructorDescriptionWinstoneController
(com.google.inject.Injector i) WinstoneController
(com.google.inject.Injector i, int httpPort) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addJavaOpt
(String javaOpt) envVarOpts
(String jenkins_opts) getLogId()
Returns the short ID used to prefix log output from the process into the test.getUrl()
Gives URL where Jenkins is listening.protected void
onReady()
Called when the Jenkins instance is ready to be used.org.jenkinsci.utils.process.ProcessInputStream
toString()
Methods inherited from class org.jenkinsci.test.acceptance.controller.LocalController
addLogListener, commonLaunchEnv, diagnose, getJavaHome, getJenkinsHome, getSutHostName, isRunInstallWizard, populateJenkinsHome, postConstruct, removeLogListener, setRunInstallWizard, startNow, stopNow, tearDown
Methods inherited from class org.jenkinsci.test.acceptance.controller.JenkinsController
close, getInitialCredentials, getLogPrinter, isRunning, restart, start, stop
-
Field Details
-
httpPort
protected int httpPort
-
-
Constructor Details
-
WinstoneController
@Inject public WinstoneController(com.google.inject.Injector i) -
WinstoneController
public WinstoneController(com.google.inject.Injector i, int httpPort)
-
-
Method Details
-
envVarOpts
-
addJavaOpt
-
onReady
Description copied from class:LocalController
Called when the Jenkins instance is ready to be used.- Overrides:
onReady
in classLocalController
- Throws:
IOException
-
startProcess
- Specified by:
startProcess
in classLocalController
- Throws:
IOException
-
getUrl
Description copied from class:JenkinsController
Gives URL where Jenkins is listening. Must end with "/"- Specified by:
getUrl
in interfaceIJenkinsController
- Specified by:
getUrl
in classJenkinsController
-
getLogId
Description copied from class:JenkinsController
Returns the short ID used to prefix log output from the process into the test.- Overrides:
getLogId
in classJenkinsController
-
toString
-