Package org.apache.openejb.test.entity.cmp

Examples of org.apache.openejb.test.entity.cmp.EncCmpHome


        }
    }

    public void test36_returnEJBHome2() {
        try {
            EncCmpHome actual = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(ejbObject.returnEJBHome(), EncCmpHome.class);
            assertNotNull("The EJBHome returned is null", actual);

        } catch (Exception e) {
            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
        }
View Full Code Here


    }

    public void test37_returnNestedEJBHome() {
        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome expected = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", expected);

            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
            assertNotNull("The ObjectGraph is null", graph);

            EncCmpHome actual = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(graph.getObject(), EncCmpHome.class);
            assertNotNull("The EJBHome returned is null", actual);
        } catch (Exception e) {
            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
        }
    }
View Full Code Here

    public void test38_returnNestedEJBHome2() {
        try {
            ObjectGraph graph = ejbObject.returnNestedEJBHome();
            assertNotNull("The ObjectGraph is null", graph);

            EncCmpHome actual = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(graph.getObject(), EncCmpHome.class);
            assertNotNull("The EJBHome returned is null", actual);
        } catch (Exception e) {
            fail("Received Exception " + e.getClass() + " : " + e.getMessage());
        }
    }
View Full Code Here

    }

    public void Xtest39_returnEJBHomeArray() {
        try {

            EncCmpHome expected[] = new EncCmpHome[3];
            for (int i = 0; i < expected.length; i++) {
                Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
                expected[i] = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
                assertNotNull("The EJBHome returned from JNDI is null", expected[i]);
            }
View Full Code Here

/*-------------------------------------------------*/

    public void test40_returnEJBObject() {
        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EncCmpObject expected = home.create("test_40 CmpBean");
            assertNotNull("The EJBObject created is null", expected);

            EncCmpObject actual = (EncCmpObject) javax.rmi.PortableRemoteObject.narrow(ejbObject.returnEJBObject(expected), EncCmpObject.class);
            assertNotNull("The EJBObject returned is null", actual);

View Full Code Here

    }

    public void test42_returnNestedEJBObject() {
        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EncCmpObject expected = home.create("test_42 CmpBean");
            assertNotNull("The EJBObject created is null", expected);

            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
            assertNotNull("The ObjectGraph is null", graph);
View Full Code Here

    }

    public void Xtest44_returnEJBObjectArray() {
        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EncCmpObject expected[] = new EncCmpObject[3];
            for (int i = 0; i < expected.length; i++) {
                expected[i] = home.create("test_44 CmpBean");
                assertNotNull("The EJBObject created is null", expected[i]);
            }

            EJBObject[] actual = ejbObject.returnEJBObjectArray(expected);
            assertNotNull("The EJBObject array returned is null", actual);
View Full Code Here

/*-------------------------------------------------*/

    public void test45_returnEJBMetaData() {
        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EJBMetaData expected = home.getEJBMetaData();
            assertNotNull("The EJBMetaData returned is null", expected);

            EJBMetaData actual = ejbObject.returnEJBMetaData(expected);
            assertNotNull("The EJBMetaData returned is null", actual);
            assertEquals(expected.getHomeInterfaceClass(), actual.getHomeInterfaceClass());
View Full Code Here

    }

    public void test47_returnNestedEJBMetaData() {
        try {
            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EJBMetaData expected = home.getEJBMetaData();
            assertNotNull("The EJBMetaData returned is null", expected);

            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));
            assertNotNull("The ObjectGraph is null", graph);
View Full Code Here

    public void test49_returnEJBMetaDataArray() {
        try {

            Object obj = initialContext.lookup("client/tests/entity/cmp/EncBean");
            EncCmpHome home = (EncCmpHome) javax.rmi.PortableRemoteObject.narrow(obj, EncCmpHome.class);
            assertNotNull("The EJBHome returned from JNDI is null", home);

            EJBMetaData expected[] = new EJBMetaData[3];
            for (int i = 0; i < expected.length; i++) {
                expected[i] = home.getEJBMetaData();
                assertNotNull("The EJBMetaData returned is null", expected[i]);
            }

            EJBMetaData[] actual = ejbObject.returnEJBMetaDataArray(expected);
            assertNotNull("The EJBMetaData array returned is null", actual);
View Full Code Here

TOP

Related Classes of org.apache.openejb.test.entity.cmp.EncCmpHome

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.