T - Concrete implementation of ResourceDescriptor providing necessary information for given resource type.public abstract class ResourceProvider<T extends ResourceDescriptor<?>> extends Object
descriptors for resources defined in given annotation type
(such as UsingDataSet or ApplyScriptBefore).| Modifier and Type | Field and Description |
|---|---|
protected MetadataExtractor |
metadataExtractor |
protected Class<? extends Annotation> |
resourceAnnotation |
| Constructor and Description |
|---|
ResourceProvider(Class<? extends Annotation> resourceAnnotation,
MetadataExtractor metadataExtractor) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createDescriptor(String dataFileName) |
protected abstract String |
defaultFileName() |
protected String |
defaultFolder() |
protected abstract String |
defaultLocation() |
protected String |
determineLocation(String location)
Checks if file exists in the default location.
|
Collection<T> |
getDescriptors(org.jboss.arquillian.test.spi.TestClass testClass)
Returns all resources defined for this test class
including those defined on the test method level.
|
Collection<T> |
getDescriptorsDefinedFor(Method testMethod) |
abstract Collection<String> |
getResourceFileNames(Method testMethod) |
protected List<T> |
obtainClassLevelDataSet(Annotation classLevelAnnotation) |
protected final MetadataExtractor metadataExtractor
protected final Class<? extends Annotation> resourceAnnotation
public ResourceProvider(Class<? extends Annotation> resourceAnnotation, MetadataExtractor metadataExtractor)
public Collection<T> getDescriptors(org.jboss.arquillian.test.spi.TestClass testClass)
testClass - public Collection<T> getDescriptorsDefinedFor(Method testMethod)
public abstract Collection<String> getResourceFileNames(Method testMethod)
protected abstract String defaultLocation()
protected abstract String defaultFileName()
protected List<T> obtainClassLevelDataSet(Annotation classLevelAnnotation)
protected String defaultFolder()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.