Package org.openbravo.test.base
Class HiddenObjectHelper
- java.lang.Object
-
- org.openbravo.test.base.HiddenObjectHelper
-
public class HiddenObjectHelper extends Object
Utility class intended to be used in jUnit tests. It allows to read/modify non visible properties.- Author:
- alostale
-
-
Constructor Summary
Constructors Constructor Description HiddenObjectHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
get(Object obj, String fieldName)
Gets fieldName in objstatic void
initializeField(Object obj, String fieldName)
Initializes field in obj with its default constructorstatic void
set(Object obj, String fieldName, Object value)
Sets value to obj.fieldName field
-
-
-
Method Detail
-
initializeField
public static void initializeField(Object obj, String fieldName) throws Exception
Initializes field in obj with its default constructor- Throws:
Exception
-
get
public static Object get(Object obj, String fieldName) throws Exception
Gets fieldName in obj- Throws:
Exception
-
-