Package com.jms.client.entity

Examples of com.jms.client.entity.Property


        entity = jpaController.create(entity);
        assertTrue("Entity not created properly", (entity.getId() > 0L));

        final String ASSERT_KEY = "BODY";
        final String ASSERT_BODY = "FIXED BODY VALUE";
        final Property ASSERT_MAP_ITEM = new Property(ASSERT_KEY, ASSERT_BODY, Type.STRING);

        entity.getMapBodyItems().add(ASSERT_MAP_ITEM);
        entity = jpaController.edit(entity);

        int indexOfMapItem = entity.getMapBodyItems().indexOf(ASSERT_MAP_ITEM);
        assertTrue("Entity not found in the collection", (indexOfMapItem > -1));
        Property foundMapItem = entity.getMapBodyItems().get(indexOfMapItem);
        assertEquals("Entity not edited properly", ASSERT_MAP_ITEM, foundMapItem);
    }
View Full Code Here

TOP

Related Classes of com.jms.client.entity.Property

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.