8788899091929394
Z z = new Z(); z.setTest("testString"); mapper = getMapper("inheritanceBug.xml"); C c = mapper.map(z, C.class); assertEquals("wrong value", "customConverter", c.getTest()); }
444546474849505152
@Test public void shouldUseConverter() { Z source = new Z(); source.setTest("testString"); C result = mapper.map(source, C.class); assertThat(result.getTest(), equalTo("customConverter")); }
646566676869707172
@Test public void shouldUseConverter3() { X source = new X(); source.setTest("testString"); C result = mapper.map(source, C.class); assertThat(result.getTest(), equalTo("customConverter")); }