public interface SutDescriptor extends FieldTrait, FieldAnnotationTrait, PropertiesReader, PropertiesWriter
| Modifier and Type | Method and Description |
|---|---|
Optional<FieldDescriptor> |
findFieldDescriptor(Type type)
Find the descriptor for a field with the given type on the system under test.
|
Optional<FieldDescriptor> |
findFieldDescriptor(Type type,
String name)
Find the descriptor for a field with the given type and name on the system under test.
|
Optional<ParameterDescriptor> |
findParameterDescriptor(Type type)
Find the descriptor for a constructor parameter with the given type on the system under
test.
|
Optional<ParameterDescriptor> |
findParameterDescriptor(Type type,
String name)
Find the descriptor for a constructor parameter with the given type and name on the
system under test.
|
Constructor |
getConstructor()
Get the constructor of the system under test class.
|
Collection<FieldDescriptor> |
getFieldDescriptors()
Get a list of field descriptors for all the fields associated with the system under test
.
|
Collection<ParameterDescriptor> |
getParameterDescriptors()
Get a list of parameter descriptors for all the parameters associated with the system
under test's constructor.
|
default Sut |
getSut()
Get
Sut annotation. |
Boolean |
isSutClass(Type type)
Determine if the given type is the same type or super type of the system under test.
|
default Boolean |
isVirtualSut()
Determine if the the
Sut annotation is a delegated mock. |
getFake, getFixture, getProperty, getReal, getVirtual, isInjectable, isMockdestroy, getAnnotatedElement, getValue, init, setValuefindMethod, findMethod, getClassLoader, getGenericType, getType, getTypeName, invoke, isSubtypeOf, isSupertypeOfgetDeclaringClass, getDeclaringClassLoader, getDeclaringClassName, getMember, getNamegetAnnotation, getAnnotations, getMetaAnnotations, hasAnyAnnotations, hasAnyAnnotationsfindCollection, findMap, findProperty, getPropertiesReader, getPropertyaddCollectionElement, addMapEntry, addProperty, computeIfAbsentgetProperties, isEmptyConstructor getConstructor()
Collection<FieldDescriptor> getFieldDescriptors()
Collection<ParameterDescriptor> getParameterDescriptors()
Optional<FieldDescriptor> findFieldDescriptor(Type type, String name)
type - the field typename - the field nameOptional<FieldDescriptor> findFieldDescriptor(Type type)
type - the field typeOptional<ParameterDescriptor> findParameterDescriptor(Type type, String name)
type - the parameter typename - the parameter nameOptional<ParameterDescriptor> findParameterDescriptor(Type type)
type - the parameter typeBoolean isSutClass(Type type)
type - the typeCopyright © 2016–2018 Testify Project. All rights reserved.