Package org.apache.openejb.test.object

Examples of org.apache.openejb.test.object.Color


/*  Enum                                           */
/*-------------------------------------------------*/

    public void test60_returnColor() {
        try {
            final Color expected = Color.GREEN;

            final Color actual = (Color) PortableRemoteObject.narrow(ejbObject.returnColor(expected), Color.class);

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);

View Full Code Here


        }
    }

    public void test61_returnColor2() {
        try {
            final Color expected = Color.GREEN;

            final Color actual = (Color) PortableRemoteObject.narrow(ejbObject.returnColor(), Color.class);

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);
View Full Code Here

        }
    }

    public void test62_returnNestedColor() {
        try{
            final Color expected = Color.GREEN;

            final ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));

            assertNotNull("The ObjectGraph is null", graph);

            final Color actual = (Color) graph.getObject();

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);
View Full Code Here

        }
    }

    public void test63_returnNestedColor2() {
        try{
            final Color expected = Color.GREEN;

            final ObjectGraph graph = ejbObject.returnNestedColor();

            assertNotNull("The ObjectGraph is null", graph);

            final Color actual = (Color) graph.getObject();

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);
View Full Code Here

/*  Enum                                           */
/*-------------------------------------------------*/

    public void test60_returnColor() {
        try {
            Color expected = Color.GREEN;

            Color actual = (Color) PortableRemoteObject.narrow(ejbObject.returnColor(expected), Color.class);

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);

View Full Code Here

        }
    }

    public void test61_returnColor2() {
        try {
            Color expected = Color.GREEN;

            Color actual = (Color) PortableRemoteObject.narrow(ejbObject.returnColor(), Color.class);

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);
View Full Code Here

        }
    }

    public void test62_returnNestedColor() {
        try{
            Color expected = Color.GREEN;

            ObjectGraph graph = ejbObject.returnObjectGraph(new ObjectGraph(expected));

            assertNotNull("The ObjectGraph is null", graph);

            Color actual = (Color) graph.getObject();

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);
View Full Code Here

        }
    }

    public void test63_returnNestedColor2() {
        try{
            Color expected = Color.GREEN;

            ObjectGraph graph = ejbObject.returnNestedColor();

            assertNotNull("The ObjectGraph is null", graph);

            Color actual = (Color) graph.getObject();

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);
View Full Code Here

    }

    public void test64_returnColorArray() {
        try{

            Color expected[] = new Color[]{Color.GREEN, Color.RED, Color.BLUE};

            Color[] actual = ejbObject.returnColorArray(expected);

            assertNotNull("The Color array returned is null", actual);
View Full Code Here

/*  Enum                                           */
/*-------------------------------------------------*/

    public void test60_returnColor() {
        try {
            final Color expected = Color.GREEN;

            final Color actual = (Color) PortableRemoteObject.narrow(ejbObject.returnColor(expected), Color.class);

            assertNotNull("The Color returned is null", actual);

            assertEquals(expected, actual);

View Full Code Here

TOP

Related Classes of org.apache.openejb.test.object.Color

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.