/** * Convenience method to obtain the value of a variable on a mojo that might not have a getter. * * NOTE: the caller is responsible for casting to to what the desired type is. * * @param object * @param variable * @return object value of variable * @throws IllegalArgumentException */ public Object getVariableValueFromObject( Object object, String variable ) throws IllegalAccessException { return testCase.getVariableValueFromObject( object, variable ); }
/** * Convenience method to obtain the value of a variable on a mojo that might not have a getter. * * NOTE: the caller is responsible for casting to to what the desired type is. * * @param object * @param variable * @return object value of variable * @throws IllegalArgumentException */ public Object getVariableValueFromObject( Object object, String variable ) throws IllegalAccessException { return testCase.getVariableValueFromObject( object, variable ); }