Package ma.glasnost.orika.test.community.issue41

Examples of ma.glasnost.orika.test.community.issue41.MyTargetObject


               
                factory.registerClassMap(factory.classMap(MySourceObject.class, MyTargetObject.class).field("e", "directE")
               
                .toClassMap());
               
                factory.getConverterFactory().registerConverter(new MyEnumConverter());
            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
View Full Code Here


               
                factory.registerClassMap(factory.classMap(MySourceObject.class, MyTargetObject.class)//
                        .field("e", "sub.s")
                        .toClassMap());
               
                factory.getConverterFactory().registerConverter(new MyEnumConverter());
            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
View Full Code Here

       
        ConfigurableMapper mapper = new ConfigurableMapper() {
           
            @Override
            public void configure(MapperFactory factory) {
                factory.getConverterFactory().registerConverter(new MyEnumConverter());
               
                factory.registerClassMap( //
                    factory.classMap(MySourceObject.class, MyTargetObject.class)//
                          .field("e", "sub.e")
                          .toClassMap());
View Full Code Here

               
                factory.getConverterFactory().registerConverter(new MyEnumConverter());
            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals(MyEnum.one, t.getDirectE());
    }
View Full Code Here

               
                factory.getConverterFactory().registerConverter(new MyEnumConverter());
            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals("un", t.getSub().getS());
    }
View Full Code Here

                          .toClassMap());
               
            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals(MyEnum.one, t.getSub().getE());
    }
View Full Code Here

            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals(MyEnum.one, t.getDirectE());
    }
View Full Code Here

            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals("un", t.getSub().getS());
    }
View Full Code Here

            }
        };
       
        MySourceObject s = new MySourceObject();
        s.setE("un");
        MyTargetObject t = mapper.map(s, MyTargetObject.class);
        Assert.assertEquals(MyEnum.one, t.getSub().getE());
    }
View Full Code Here

TOP

Related Classes of ma.glasnost.orika.test.community.issue41.MyTargetObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.