Package org.openengsb.core.util.beans

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


        assertThat(created, is(bean));
    }

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

TOP

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

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.