Package net.thucydides.core.steps
Class StepsAnnotatedField
- java.lang.Object
-
- net.thucydides.core.steps.StepsAnnotatedField
-
public class StepsAnnotatedField extends Object
Used to identify Step library fields that need to be instantiated.- Author:
- johnsmart
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StepsAnnotatedField(Field field)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
actor()
void
assignActorNameIn(Object steps)
static List<StepsAnnotatedField>
findMandatoryAnnotatedFields(Class<?> clazz)
Find the first field in the class annotated with the Managed annotation.static List<StepsAnnotatedField>
findOptionalAnnotatedFields(Class<?> clazz)
Find the fields in the class annotated with the Step annotation.Class<?>
getFieldClass()
String
getFieldName()
boolean
isInstantiated(Object testCase)
boolean
isSharedInstance()
boolean
isUniqueInstance()
protected FieldSetter
set(Object targetObject)
void
setValue(Object field, Object value)
-
-
-
Constructor Detail
-
StepsAnnotatedField
protected StepsAnnotatedField(Field field)
-
-
Method Detail
-
getFieldName
public String getFieldName()
-
findMandatoryAnnotatedFields
public static List<StepsAnnotatedField> findMandatoryAnnotatedFields(Class<?> clazz)
Find the first field in the class annotated with the Managed annotation.
-
findOptionalAnnotatedFields
public static List<StepsAnnotatedField> findOptionalAnnotatedFields(Class<?> clazz)
Find the fields in the class annotated with the Step annotation.
-
set
protected FieldSetter set(Object targetObject)
-
isInstantiated
public boolean isInstantiated(Object testCase)
-
getFieldClass
public Class<?> getFieldClass()
-
isSharedInstance
public boolean isSharedInstance()
-
isUniqueInstance
public boolean isUniqueInstance()
-
assignActorNameIn
public void assignActorNameIn(Object steps)
-
-