1 | |
package org.jbehave.jenkins; |
2 | |
|
3 | |
import org.kohsuke.stapler.DataBoundConstructor; |
4 | |
|
5 | |
import com.thalesgroup.dtkit.metrics.hudson.api.descriptor.TestTypeDescriptor; |
6 | |
import com.thalesgroup.dtkit.metrics.hudson.api.type.TestType; |
7 | |
|
8 | |
import hudson.Extension; |
9 | |
|
10 | 0 | @SuppressWarnings("serial") |
11 | |
public class JBehavePluginType extends TestType { |
12 | |
|
13 | |
|
14 | |
public JBehavePluginType(String pattern, boolean failedIfNotNew, boolean deleteOutputFiles) { |
15 | 0 | this(pattern, failedIfNotNew, deleteOutputFiles,true); |
16 | 0 | } |
17 | |
|
18 | |
@DataBoundConstructor |
19 | |
public JBehavePluginType(String pattern, boolean failedIfNotNew, boolean deleteOutputFiles, boolean stopProcessingIfError) { |
20 | 0 | super(pattern, failedIfNotNew, deleteOutputFiles, stopProcessingIfError); |
21 | 0 | } |
22 | |
|
23 | |
public TestTypeDescriptor<?> getDescriptor() { |
24 | 0 | return new JBehavePluginType.DescriptorImpl(); |
25 | |
} |
26 | |
|
27 | |
@Extension |
28 | |
public static class DescriptorImpl extends TestTypeDescriptor<JBehavePluginType> { |
29 | |
|
30 | |
public DescriptorImpl() { |
31 | 0 | super(JBehavePluginType.class, JBehaveInputMetric.class); |
32 | 0 | } |
33 | |
|
34 | |
public String getId() { |
35 | 0 | return JBehavePluginType.class.getCanonicalName(); |
36 | |
} |
37 | |
} |
38 | |
|
39 | |
} |