Package org.jvnet.hudson.test
Class HudsonHomeLoader.CopyExisting
java.lang.Object
org.jvnet.hudson.test.HudsonHomeLoader.CopyExisting
- All Implemented Interfaces:
HudsonHomeLoader
- Enclosing interface:
- HudsonHomeLoader
Allocates a new directory by copying from an existing directory, or unzipping from a zip file.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jvnet.hudson.test.HudsonHomeLoader
HudsonHomeLoader.CopyExisting, HudsonHomeLoader.Local
-
Field Summary
Fields inherited from interface org.jvnet.hudson.test.HudsonHomeLoader
NEW
-
Constructor Summary
ConstructorDescriptionCopyExisting
(File source) Either a zip file or a directory that contains the home image.CopyExisting
(URL source) Extracts from a zip file in the resource. -
Method Summary
-
Constructor Details
-
CopyExisting
Either a zip file or a directory that contains the home image.- Throws:
MalformedURLException
-
CopyExisting
Extracts from a zip file in the resource.This is useful in case you want to have a test data in the resources. Only file URL is supported.
-
-
Method Details
-
allocate
Description copied from interface:HudsonHomeLoader
Returns a directory to be used asJENKINS_HOME
- Specified by:
allocate
in interfaceHudsonHomeLoader
- Throws:
Exception
- to cause a test to fail.
-