@Test
public void testInterface() throws Exception {
log.info("Starting");
mapper = getMapper("interfaceMapping.xml");
{ // warm up to load the config
ApplicationUser source = new ApplicationUser();
UpdateMember target = new UpdateMember();
mapper.map(source, target);
}
for (int j = 1; j <= 16384; j += j) {
long start = System.currentTimeMillis();
for (int i = 0; i < j; i++) {
ApplicationUser source = new ApplicationUser();
UpdateMember target = new UpdateMember();
mapper.map(source, target);
}
long applicationUserTime = (System.currentTimeMillis() - start);
start = System.currentTimeMillis();