Add @DataBoundConstructor to SleepBuilder along with test unit.

This commit is contained in:
christ66 committed 2013-09-17 17:26:12 -07:00
1 parent dd6eab438f
commit 562204628e
3 files changed
+29 -1

No files matched your search

@@ -29,6 +29,7 @@ import hudson.model.AbstractBuild;
import hudson.model.BuildListener;
import hudson.model.Descriptor;
import hudson.tasks.Builder;
import org.kohsuke.stapler.DataBoundConstructor;
import java.io.IOException;
@@ -40,6 +41,7 @@ import java.io.IOException;
public class SleepBuilder extends Builder {
public final long time;
@DataBoundConstructor
public SleepBuilder(long time) {
this.time = time;
}