public class TestUtil extends Object
| Constructor and Description |
|---|
TestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setIdOnPersistentObject(PersistentObject persistentObject,
Integer id)
Helper method that uses reflection to set the (inaccessible) id field of
the given
PersistentObject. |
public static final void setIdOnPersistentObject(PersistentObject persistentObject, Integer id) throws NoSuchFieldException, IllegalAccessException
PersistentObject.persistentObject - The object with the inaccessible id fieldid - The id to setNoSuchFieldExceptionIllegalAccessExceptionCopyright © 2016 terrestris GmbH & Co. KG. All rights reserved.