com.atlassian.core.test.util
Class JavaBeanMethodHandler
java.lang.Object
com.atlassian.core.test.util.JavaBeanMethodHandler
- All Implemented Interfaces:
- DuckTypeProxy.UnimplementedMethodHandler
public class JavaBeanMethodHandler
- extends Object
- implements DuckTypeProxy.UnimplementedMethodHandler
Handles getters and setters by storing their values in a map. Calling a method
that is not a getter or a setter will throw UnsupportedOperationException.
Make sure you create one of these per test, as they are stateful.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaBeanMethodHandler
public JavaBeanMethodHandler()
methodNotImplemented
public Object methodNotImplemented(Method method,
Object[] args)
- Specified by:
methodNotImplemented in interface DuckTypeProxy.UnimplementedMethodHandler
Copyright © 2015 Atlassian. All rights reserved.