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