net.thucydides.core.steps
Class StepsAnnotatedField

Package class diagram package StepsAnnotatedField
java.lang.Object
  extended by 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
protected StepsAnnotatedField(Field field)
           
 
Method Summary
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<? extends ScenarioSteps> getFieldClass()
           
 boolean isInstantiated(Object testCase)
           
protected  FieldSetter set(Object targetObject)
           
 void setValue(Object testCase, Object steps)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StepsAnnotatedField

protected StepsAnnotatedField(Field field)
Method Detail

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)

setValue

public void setValue(Object testCase,
                     Object steps)

isInstantiated

public boolean isInstantiated(Object testCase)

getFieldClass

public Class<? extends ScenarioSteps> getFieldClass()


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.