use of org.apache.openejb.test.entity.bmp.EncBmpObject 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());
}
}
use of org.apache.openejb.test.entity.bmp.EncBmpObject 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());
}
}
Aggregations