Package us.codecraft.forger.property

Examples of us.codecraft.forger.property.SimpleFieldPropertyLoader


*/
public class ForgerFactoryTest {

    @Test
    public void testForgerCreateByClassProperty() throws Exception {
        ForgerFactory forgerFactory = new ForgerFactory(new SimpleFieldPropertyLoader(), null);
        Forger<Foo> forger = forgerFactory.<Foo>create(Foo.class);
        Foo foo = forger.forge(ImmutableMap.<String, Object>of("foo", "test"));
        assertThat(foo.getFoo()).isEqualTo("test");
    }
View Full Code Here

TOP

Related Classes of us.codecraft.forger.property.SimpleFieldPropertyLoader

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.