Search in sources :

Example 1 with EncBmpHome

use of org.apache.openejb.test.entity.bmp.EncBmpHome in project tomee by apache.

the class MiscEjbTests method test03_isIdentical_bmp.

public void test03_isIdentical_bmp() {
    try {
        final String jndiName = "client/tests/entity/bmp/EncBean";
        EncBmpHome ejbHome2 = null;
        EncBmpObject ejbObject2 = null;
        final Object obj = initialContext.lookup(jndiName);
        ejbHome2 = (EncBmpHome) obj;
        ejbObject2 = ejbHome2.create("isIdentical test");
        //System.out.println("_______________________________________________________");
        assertTrue("The EJBObjects should not be identical", !ejbObject.isIdentical(ejbObject2));
    //System.out.println(" ejb1 "+ejbObject);
    //System.out.println(" ejb2 "+ejbObject2);
    //System.out.println("-------------------------------------------------------");
    } catch (final Exception e) {
        fail("Received Exception " + e.getClass() + " : " + e.getMessage());
    }
}
Also used : EncBmpHome(org.apache.openejb.test.entity.bmp.EncBmpHome) EncCmpObject(org.apache.openejb.test.entity.cmp.EncCmpObject) EncStatefulObject(org.apache.openejb.test.stateful.EncStatefulObject) EncBmpObject(org.apache.openejb.test.entity.bmp.EncBmpObject) EncBmpObject(org.apache.openejb.test.entity.bmp.EncBmpObject)

Example 2 with EncBmpHome

use of org.apache.openejb.test.entity.bmp.EncBmpHome in project tomee by apache.

the class MiscEjbTests method test03_isIdentical_bmp.

public void test03_isIdentical_bmp() {
    try {
        final String jndiName = "client/tests/entity/bmp/EncBean";
        EncBmpHome ejbHome2 = null;
        EncBmpObject ejbObject2 = null;
        final Object obj = initialContext.lookup(jndiName);
        ejbHome2 = (EncBmpHome) obj;
        ejbObject2 = ejbHome2.create("isIdentical test");
        //System.out.println("_______________________________________________________");
        assertTrue("The EJBObjects should not be identical", !ejbObject.isIdentical(ejbObject2));
    //System.out.println(" ejb1 "+ejbObject);
    //System.out.println(" ejb2 "+ejbObject2);
    //System.out.println("-------------------------------------------------------");
    } catch (final Exception e) {
        fail("Received Exception " + e.getClass() + " : " + e.getMessage());
    }
}
Also used : EncBmpHome(org.apache.openejb.test.entity.bmp.EncBmpHome) EncCmpObject(org.apache.openejb.test.entity.cmp.EncCmpObject) EncStatefulObject(org.apache.openejb.test.stateful.EncStatefulObject) EncBmpObject(org.apache.openejb.test.entity.bmp.EncBmpObject) EncBmpObject(org.apache.openejb.test.entity.bmp.EncBmpObject)

Aggregations

EncBmpHome (org.apache.openejb.test.entity.bmp.EncBmpHome)2 EncBmpObject (org.apache.openejb.test.entity.bmp.EncBmpObject)2 EncCmpObject (org.apache.openejb.test.entity.cmp.EncCmpObject)2 EncStatefulObject (org.apache.openejb.test.stateful.EncStatefulObject)2