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 ClassesNested classes/interfaces inherited from class org.jenkinsci.test.acceptance.controller.LocalController
LocalController.LocalFactoryImpl -
Field Summary
FieldsFields inherited from class org.jenkinsci.test.acceptance.controller.LocalController
jenkinsHome, logWatcher, process, time, warFields inherited from class org.jenkinsci.test.acceptance.controller.JenkinsController
isQuite, STARTUP_TIMEOUT, WORKSPACE -
Constructor Summary
ConstructorsConstructorDescriptionWinstoneController(com.google.inject.Injector i) WinstoneController(com.google.inject.Injector i, int httpPort) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJavaOpt(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 voidonReady()Called when the Jenkins instance is ready to be used.org.jenkinsci.utils.process.ProcessInputStreamtoString()Methods inherited from class org.jenkinsci.test.acceptance.controller.LocalController
addLogListener, commonLaunchEnv, diagnose, getJavaHome, getJenkinsHome, getSutHostName, isRunInstallWizard, populateJenkinsHome, postConstruct, removeLogListener, setRunInstallWizard, startNow, stopNow, tearDownMethods 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:LocalControllerCalled when the Jenkins instance is ready to be used.- Overrides:
onReadyin classLocalController- Throws:
IOException
-
startProcess
- Specified by:
startProcessin classLocalController- Throws:
IOException
-
getUrl
Description copied from class:JenkinsControllerGives URL where Jenkins is listening. Must end with "/"- Specified by:
getUrlin interfaceIJenkinsController- Specified by:
getUrlin classJenkinsController
-
getLogId
Description copied from class:JenkinsControllerReturns the short ID used to prefix log output from the process into the test.- Overrides:
getLogIdin classJenkinsController
-
toString
-