Examples of BMPLocalHome


Examples of org.jboss.as.test.integration.ejb.entity.bmp.BMPLocalHome

    }

    @Test
    public void testGetEJBLocalHome() throws Exception {
        DataStore.DATA.clear();
        final BMPLocalHome home = getHome();
        DataStore.DATA.put(23, "23");
        BMPLocalInterface result = home.findByPrimaryKey(23);
        final BMPLocalHome home2 = (BMPLocalHome) result.getEJBLocalHome();
        Assert.assertEquals(SimpleBMPBean.HOME_METHOD_RETURN, home2.exampleHomeMethod());
    }
View Full Code Here

Examples of org.jboss.as.test.integration.ejb.entity.bmp.BMPLocalHome

        Assert.assertEquals(SimpleBMPBean.HOME_METHOD_RETURN, home2.exampleHomeMethod());
    }

    @Test
    public void testHomeInterfaceEquality() throws Exception {
        final BMPLocalHome home1 = getHome();
        final BMPLocalHome home2 = getHome();
        Assert.assertEquals(home1, home2);
        Assert.assertEquals(home1.hashCode(), home2.hashCode());
        Assert.assertNotSame(home1, new BMPLocalHome() {

            @Override
            public BMPLocalInterface createEmpty() {
                return null;
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.