@Test public void test_no_mapping_file() throws IOException { Transformer<?,?> transformer = getTransformer("sw-config-nofile.xml"); Assert.assertTrue(transformer instanceof DozerTransformer); DozerTransformer dozer = DozerTransformer.class.cast(transformer); ClassA a = new ClassA(); a.setFieldA("testa"); a.setFieldB("testb"); Object result = dozer.transform(a); Assert.assertTrue(result instanceof ClassB); ClassB b = ClassB.class.cast(result); Assert.assertEquals("testa", b.getFieldA()); Assert.assertNull(b.getFieldB_mod()); }
@Override public Object transform(Object message) { return _dozerBeanMapper.map(message, QNameUtil.toJavaMessageType(getTo())); }
DozerTransformer extends BaseTransformer { @Override public Object transform(Object message) { return _dozerBeanMapper.map(message, QNameUtil.toJavaMessageType(getTo())); } }
DozerTransformer extends BaseTransformer { @Override public Object transform(Object message) { return _dozerBeanMapper.map(message, QNameUtil.toJavaMessageType(getTo())); } protected  DozerTransformer(final QName from, final QName to, List<String> configs); }
DozerTransformer extends BaseTransformer { @Override public Object transform(Object message) { return _dozerBeanMapper.map(message, QNameUtil.toJavaMessageType(getTo())); } protected  DozerTransformer(final QName from, final QName to, List<String> configs); @Override Object transform(Object message); }
DozerTransformer extends BaseTransformer { @Override public Object transform(Object message) { return _dozerBeanMapper.map(message, QNameUtil.toJavaMessageType(getTo())); } protected  DozerTransformer(final QName from, final QName to, List<String> configs); @Override Object transform(Object message);  }