4849505152535455
} }; MySourceObject s = new MySourceObject(); s.setE("un"); MyTargetObject t = mapper.map(s, MyTargetObject.class); Assert.assertEquals(MyEnum.one, t.getDirectE()); }
7172737475767778
} }; MySourceObject s = new MySourceObject(); s.setE("un"); MyTargetObject t = mapper.map(s, MyTargetObject.class); Assert.assertEquals("un", t.getSub().getS()); }
949596979899100101
} }; MySourceObject s = new MySourceObject(); s.setE("un"); MyTargetObject t = mapper.map(s, MyTargetObject.class); Assert.assertEquals(MyEnum.one, t.getSub().getE()); }