272829303132333435
*/ public static List<StepsAnnotatedField> findMandatoryAnnotatedFields(final Class<?> clazz) { List<StepsAnnotatedField> annotatedFields = findOptionalAnnotatedFields(clazz); if (annotatedFields.isEmpty()) { throw new InvalidStepsFieldException(NO_ANNOTATED_FIELD_ERROR); } return annotatedFields; }
7980818283848586
public void setValue(final Object testCase, final Object steps) { try { set(testCase).to(steps); } catch (IllegalAccessException e) { throw new InvalidStepsFieldException("Could not access or set @Steps field: " + field, e); } }
8990919293949596
try { field.setAccessible(true); Object fieldValue = field.get(testCase); return (fieldValue != null); } catch (IllegalAccessException e) { throw new InvalidStepsFieldException("Could not access or set @Steps field: " + field, e); } }