4849505152535455565758
} }; MySourceObject s = new MySourceObject(); s.setE("un"); MyTargetObject t = mapper.map(s, MyTargetObject.class); Assert.assertEquals(MyEnum.one, t.getDirectE()); } @Test @Concurrent(200)
7172737475767778798081
} }; MySourceObject s = new MySourceObject(); s.setE("un"); MyTargetObject t = mapper.map(s, MyTargetObject.class); Assert.assertEquals("un", t.getSub().getS()); } @Test public void test_converter_string_to_enum_nested_not_working() {
949596979899100101102103
} }; MySourceObject s = new MySourceObject(); s.setE("un"); MyTargetObject t = mapper.map(s, MyTargetObject.class); Assert.assertEquals(MyEnum.one, t.getSub().getE()); } }
5657585960616263646566
invoiceitemVO.getProjectItems().add(projectItemVO); InvoiceItemProxy invoiceItemProxy = BeanFactory .createInvoiceItemProxy(); mapper.map(invoiceitemVO, invoiceItemProxy); } public static class BeanFactory {