use of org.simpleflatmapper.reflect.setter.MethodSetter in project SimpleFlatMapper by arnaudroger.
the class ObjectSetterFactoryTest method testFailFallBackToMethod.
@Test
public void testFailFallBackToMethod() throws Exception {
Setter<Foo, String> setter = new ObjectSetterFactory(new AsmFactory(Thread.currentThread().getContextClassLoader()) {
@Override
public <T, P> Setter<T, P> createSetter(Method m) throws Exception {
throw new UnsupportedOperationException();
}
}).getSetter(Foo.class, "foo");
assertTrue(setter instanceof MethodSetter);
SetterHelperTest.validateFooSetter(setter);
}
Aggregations