Class AbstractTestDescriptor
- java.lang.Object
-
- hudson.model.Descriptor<T>
-
- hudson.tasks.BuildStepDescriptor<Builder>
-
- de.tracetronic.jenkins.plugins.ecutest.test.AbstractTestDescriptor
-
- Direct Known Subclasses:
TestFolderBuilder.DescriptorImpl
,TestPackageBuilder.DescriptorImpl
,TestProjectBuilder.DescriptorImpl
public abstract class AbstractTestDescriptor extends BuildStepDescriptor<Builder>
Common base descriptor class for all test related task build descriptors implemented in this plugin.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
Fields Modifier and Type Field Description protected TestValidator
testValidator
Validator to check form fields.-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description AbstractTestDescriptor(Class<? extends AbstractTestBuilder> clazz)
Instantiates aAbstractTestDescriptor
.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract FormValidation
doCheckTestFile(String value)
Validates the test file.boolean
isApplicable(Class<? extends AbstractProject> jobType)
Builder
newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json)
-
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
testValidator
protected final transient TestValidator testValidator
Validator to check form fields.
-
-
Constructor Detail
-
AbstractTestDescriptor
public AbstractTestDescriptor(Class<? extends AbstractTestBuilder> clazz)
Instantiates aAbstractTestDescriptor
.- Parameters:
clazz
- theAbstractTestBuilder
class name
-
-
Method Detail
-
isApplicable
public boolean isApplicable(Class<? extends AbstractProject> jobType)
- Specified by:
isApplicable
in classBuildStepDescriptor<Builder>
-
doCheckTestFile
public abstract FormValidation doCheckTestFile(@QueryParameter String value)
Validates the test file.- Parameters:
value
- the test file- Returns:
- the form validation
-
newInstance
public Builder newInstance(org.kohsuke.stapler.StaplerRequest req, @Nonnull net.sf.json.JSONObject json)
- Overrides:
newInstance
in classDescriptor<Builder>
-
-