org.jvnet.hudson.test
Interface HudsonHomeLoader

All Known Implementing Classes:
HudsonHomeLoader.CopyExisting, HudsonHomeLoader.Local

public interface HudsonHomeLoader

Controls how a HudsonTestCase initializes HUDSON_HOME.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class HudsonHomeLoader.CopyExisting
          Allocates a new directory by copying from an existing directory, or unzipping from a zip file.
static class HudsonHomeLoader.Local
          Allocates a new directory by copying from a test resource
 
Field Summary
static HudsonHomeLoader NEW
          Allocates a new empty directory, meaning this will emulate the fresh Hudson installation.
 
Method Summary
 java.io.File allocate()
          Returns a directory to be used as HUDSON_HOME
 

Field Detail

NEW

static final HudsonHomeLoader NEW
Allocates a new empty directory, meaning this will emulate the fresh Hudson installation.

Method Detail

allocate

java.io.File allocate()
                      throws java.lang.Exception
Returns a directory to be used as HUDSON_HOME

Throws:
java.lang.Exception - to cause a test to fail.


Copyright © 2008. All Rights Reserved.