public interface TestDescriptor extends PropertiesReader, PropertiesWriter, AnnotationTrait<Class>
| Modifier and Type | Method and Description |
|---|---|
Optional<MethodDescriptor> |
findCollaboratorProvider(Type returnType)
Find the collaborator provider for the given return type.
|
Optional<MethodDescriptor> |
findCollaboratorProvider(Type returnType,
String name)
Find the collaborator provider for the given name and return type.
|
Optional<MethodDescriptor> |
findConfigHandler(Type configurableType)
Find the config handler associated with the test class capable of configuring the given
configurable type.
|
Optional<FieldDescriptor> |
findFieldDescriptor(Type type)
Find the descriptor for a field with the given type on the test class.
|
Optional<FieldDescriptor> |
findFieldDescriptor(Type type,
String name)
Find the descriptor for a field with the given type and name on the test class.
|
Optional<Application> |
getApplication()
The application annotation associated with the test class.
|
Optional<CollaboratorProvider> |
getCollaboratorProvider()
The collaborator provider annotation associated with the test class.
|
Collection<MethodDescriptor> |
getCollaboratorProviders()
Get a collection of collaborator provider methods associated with the test class.
|
Optional<ConfigHandler> |
getConfigHandler()
The config handler annotation associated with the test class.
|
Collection<MethodDescriptor> |
getConfigHandlers()
Get a collection of method handlers for all the config handlers associated with the test
class.
|
Collection<FieldDescriptor> |
getFieldDescriptors()
Get a collection of field descriptors for all the fields associated with the test class.
|
Collection<Class<? extends Annotation>> |
getGuidelines()
Get guideline annotations associated with the test.
|
Optional<Hint> |
getHint()
Get hint annotation associated with the test.
|
Collection<Annotation> |
getInspectedAnnotations()
Get a collection of all known and inspected annotations including those placed on
Bundle annotation. |
Collection<LocalResource> |
getLocalResources()
Get a collection of local resources associated with the test class.
|
Collection<Module> |
getModules()
Get a collection of modules associated with the test class.
|
Collection<RemoteResource> |
getRemoteResources()
Get a collection of remote resources associated with the test class.
|
Collection<Scan> |
getScans()
Get a collection of scans associated with the test class.
|
Optional<Field> |
getSutField()
Get the system under test field associated with the test class.
|
Class<?> |
getTestClass()
Get the test class.
|
ClassLoader |
getTestClassLoader()
The class loader associated with the test class.
|
String |
getTestClassName()
The name of the test class.
|
Collection<VirtualResource> |
getVirtualResources()
Get a collection of virtual resources associated with the test class.
|
findCollection, findMap, findProperty, getPropertiesReader, getPropertyaddCollectionElement, addMapEntry, addProperty, computeIfAbsentgetProperties, isEmptygetAnnotatedElement, getAnnotation, getAnnotations, getMetaAnnotations, hasAnyAnnotations, hasAnyAnnotationsString getTestClassName()
Class<?> getTestClass()
ClassLoader getTestClassLoader()
Optional<CollaboratorProvider> getCollaboratorProvider()
Collection<MethodDescriptor> getCollaboratorProviders()
Optional<Application> getApplication()
Optional<Field> getSutField()
Optional<ConfigHandler> getConfigHandler()
Collection<MethodDescriptor> getConfigHandlers()
Collection<FieldDescriptor> getFieldDescriptors()
Collection<Module> getModules()
Collection<Scan> getScans()
Collection<LocalResource> getLocalResources()
Collection<VirtualResource> getVirtualResources()
Collection<RemoteResource> getRemoteResources()
Collection<Annotation> getInspectedAnnotations()
Bundle annotation.Collection<Class<? extends Annotation>> getGuidelines()
Optional<Hint> getHint()
Optional<MethodDescriptor> findConfigHandler(Type configurableType)
configurableType - the configurable typeOptional<MethodDescriptor> findCollaboratorProvider(Type returnType)
returnType - the return typeOptional<MethodDescriptor> findCollaboratorProvider(Type returnType, String name)
returnType - the return typename - the name associated with the collaborator provider methodOptional<FieldDescriptor> findFieldDescriptor(Type type, String name)
type - the field typename - the field nameOptional<FieldDescriptor> findFieldDescriptor(Type type)
type - the field typeCopyright © 2016–2018 Testify Project. All rights reserved.