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 DbUnitMetadataExtractor |
metadataExtractor |
protected Class<? extends Annotation> |
resourceAnnotation |
| Constructor and Description |
|---|
ResourceProvider(Class<? extends Annotation> resourceAnnotation,
DbUnitMetadataExtractor metadataExtractor) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
createDescriptor(String resource) |
protected abstract String |
defaultFileName() |
protected String |
defaultFolder() |
protected abstract String |
defaultLocation() |
protected String |
determineLocation(String location)
Checks if file exists in the default location.
|
protected boolean |
existsInDefaultLocation(String location) |
protected boolean |
existsInGivenLocation(String 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> |
obtainClassLevelDescriptor(Annotation classLevelAnnotation) |
protected final DbUnitMetadataExtractor metadataExtractor
protected final Class<? extends Annotation> resourceAnnotation
public ResourceProvider(Class<? extends Annotation> resourceAnnotation, DbUnitMetadataExtractor metadataExtractor)
public Collection<T> getDescriptors(org.jboss.arquillian.test.spi.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> obtainClassLevelDescriptor(Annotation classLevelAnnotation)
protected String defaultFolder()
protected String determineLocation(String location)
protected boolean existsInGivenLocation(String location)
protected boolean existsInDefaultLocation(String location)
Copyright © 2018 JBoss by Red Hat. All rights reserved.