org.prevayler.implementation
Class Sneaky
java.lang.Object
org.prevayler.implementation.Sneaky
public class Sneaky
- extends Object
Things that normal code shouldn't do, and maybe tests shouldn't either, but
that can be useful for some exceptional testing situations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Sneaky
public Sneaky()
get
public static Object get(Object root,
String path)
throws Exception
- Get a field value using reflection.
- Parameters:
root
- The object to start from.path
- The field name, or a "path" such as "a.b.c".
- Throws:
Exception
Copyright © 2001-2013. All Rights Reserved.