Package org.openengsb.core.util.beans

Examples of org.openengsb.core.util.beans.CustomStringClass


    }

    @Test
    public void testBuildMapWithComlexBeanAndRebuild_shouldBeEqualToOriginalBean() throws Exception {
        BeanWithComplexAttributes bean =
            new BeanWithComplexAttributes(new CustomStringClass("foo:bar"), new BigDecimal("1"));
        Map<String, Object> map = BeanUtilsExtended.buildObjectAttributeMap(bean);
        BeanWithComplexAttributes created =
            BeanUtilsExtended.createBeanFromAttributeMap(BeanWithComplexAttributes.class, map);
        assertThat(created, is(bean));
    }
View Full Code Here


    }

    @Test
    public void testBuildMapWithIncompleteComlexBeanAndRebuild_shouldBeEqualToOriginalBean() throws Exception {
        BeanWithComplexAttributes bean =
            new BeanWithComplexAttributes(new CustomStringClass("foo:bar"));
        Map<String, Object> map = BeanUtilsExtended.buildObjectAttributeMap(bean);
        BeanWithComplexAttributes created =
            BeanUtilsExtended.createBeanFromAttributeMap(BeanWithComplexAttributes.class, map);
        assertThat(created, is(bean));
    }
View Full Code Here

TOP

Related Classes of org.openengsb.core.util.beans.CustomStringClass

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.