org.jvnet.hudson.test
Class MockBuilder

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Builder
          extended by org.jvnet.hudson.test.MockBuilder
All Implemented Interfaces:
ExtensionPoint, Describable<Builder>, BuildStep

public class MockBuilder
extends Builder

Forces the build result to be some pre-configured value.

Author:
Kohsuke Kawaguchi

Nested Class Summary
static class MockBuilder.DescriptorImpl
           
 
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 Result result
           
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
MockBuilder(Result result)
           
 
Method Summary
 boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
           
 
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getProjectAction, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, perform, prebuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, prebuild
 

Field Detail

result

public final Result result
Constructor Detail

MockBuilder

public MockBuilder(Result result)
Method Detail

perform

public boolean perform(AbstractBuild<?,?> build,
                       Launcher launcher,
                       BuildListener listener)
                throws java.lang.InterruptedException,
                       java.io.IOException
Specified by:
perform in interface BuildStep
Overrides:
perform in class BuildStepCompatibilityLayer
Throws:
java.lang.InterruptedException
java.io.IOException


Copyright © 2009. All Rights Reserved.