use of org.simpleflatmapper.test.map.SampleFieldKey in project SimpleFlatMapper by arnaudroger.
the class AbstractMapperFactoryTest method testKeys.
@Test
public void testKeys() {
MapperFactory mapperFactory = new MapperFactory();
mapperFactory.addKeys("a", "b");
Assert.assertArrayEquals(new Object[] { KeyProperty.DEFAULT }, mapperFactory.columnDefinitions().getColumnDefinition(new SampleFieldKey("a", 0)).properties());
Assert.assertArrayEquals(new Object[] { KeyProperty.DEFAULT }, mapperFactory.columnDefinitions().getColumnDefinition(new SampleFieldKey("b", 0)).properties());
Assert.assertArrayEquals(new Object[] {}, mapperFactory.columnDefinitions().getColumnDefinition(new SampleFieldKey("c", 0)).properties());
}
Aggregations