Search in sources :

Example 1 with PropertyNameMatcherFactory

use of org.simpleflatmapper.map.PropertyNameMatcherFactory in project SimpleFlatMapper by arnaudroger.

the class AbstractMapperFactoryTest method testPropertyNameMatcherFactory.

@Test
public void testPropertyNameMatcherFactory() {
    PropertyNameMatcherFactory factory = new PropertyNameMatcherFactory() {

        @Override
        public PropertyNameMatcher newInstance(FieldKey<?> key) {
            return null;
        }
    };
    assertSame(factory, new MapperFactory().propertyNameMatcherFactory(factory).mapperConfig().propertyNameMatcherFactory());
}
Also used : DefaultPropertyNameMatcherFactory(org.simpleflatmapper.map.mapper.DefaultPropertyNameMatcherFactory) PropertyNameMatcherFactory(org.simpleflatmapper.map.PropertyNameMatcherFactory) AbstractMapperFactory(org.simpleflatmapper.map.mapper.AbstractMapperFactory) FieldKey(org.simpleflatmapper.map.FieldKey) SampleFieldKey(org.simpleflatmapper.test.map.SampleFieldKey) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 FieldKey (org.simpleflatmapper.map.FieldKey)1 PropertyNameMatcherFactory (org.simpleflatmapper.map.PropertyNameMatcherFactory)1 AbstractMapperFactory (org.simpleflatmapper.map.mapper.AbstractMapperFactory)1 DefaultPropertyNameMatcherFactory (org.simpleflatmapper.map.mapper.DefaultPropertyNameMatcherFactory)1 SampleFieldKey (org.simpleflatmapper.test.map.SampleFieldKey)1