Search in sources :

Example 1 with NullSetter

use of org.simpleflatmapper.reflect.setter.NullSetter in project SimpleFlatMapper by arnaudroger.

the class ConstructorPropertyMetaTest method testSetterIsNullSetter.

@Test
public void testSetterIsNullSetter() throws Exception {
    PropertyMeta<CObject, Object> property = classMeta.newPropertyFinder(isValidPropertyMeta).findProperty(new DefaultPropertyNameMatcher("p1", 0, false, false), new Object[0]);
    assertTrue(property.getSetter() instanceof NullSetter);
}
Also used : DefaultPropertyNameMatcher(org.simpleflatmapper.reflect.meta.DefaultPropertyNameMatcher) NullSetter(org.simpleflatmapper.reflect.setter.NullSetter) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 DefaultPropertyNameMatcher (org.simpleflatmapper.reflect.meta.DefaultPropertyNameMatcher)1 NullSetter (org.simpleflatmapper.reflect.setter.NullSetter)1