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 | |
@DataBoundConstructor |
14 | |
public JBehavePluginType(String pattern, boolean failedIfNotNew, boolean deleteOutputFiles) { |
15 | 0 | super(pattern, failedIfNotNew, deleteOutputFiles); |
16 | 0 | } |
17 | |
|
18 | |
public TestTypeDescriptor<?> getDescriptor() { |
19 | 0 | return new JBehavePluginType.DescriptorImpl(); |
20 | |
} |
21 | |
|
22 | |
@Extension |
23 | |
public static class DescriptorImpl extends TestTypeDescriptor<JBehavePluginType> { |
24 | |
|
25 | |
public DescriptorImpl() { |
26 | 0 | super(JBehavePluginType.class, JBehaveInputMetric.class); |
27 | 0 | } |
28 | |
|
29 | |
public String getId() { |
30 | 0 | return JBehavePluginType.class.getCanonicalName(); |
31 | |
} |
32 | |
} |
33 | |
|
34 | |
} |