Package org.omg.CORBA

Examples of org.omg.CORBA.Request.result()


        thisReq.invoke();

        assertTrue (nvArg2.value ().extract_long () == nvArg1.value ().extract_long ());

        // Get the return value from the Request object and output results.
        result = thisReq.result().value();
        assertTrue (result.extract_long () == -100);

        // Should be no exception thrown.
        assertTrue (thisReq.env ().exception () == null);
    }
View Full Code Here


        Request thisReq =
        server._create_request(ctx, "myFunction", argList, resultVal, exceptions, null);

        thisReq.invoke();

        result = thisReq.result().value();

        // Should be an exception thrown.
        assertTrue (thisReq.env ().exception () != null);
        assertTrue (thisReq.env ().exception () instanceof INTERNAL);
        assertTrue (thisReq.env ().exception ().toString ().indexOf ("A system exception!") != -1);
View Full Code Here

        Request thisReq =
        server._create_request(ctx, "myFunction", argList, resultVal, exceptions, null);

        thisReq.invoke();

        result = thisReq.result().value();

        // Should be an exception thrown.
        assertTrue (thisReq.env ().exception () != null);
        assertTrue
           (((UnknownUserException)thisReq.env ().exception ()).except.type ().equal (MyOwnExceptionHelper.type ()));
View Full Code Here

        Request thisReq =
        server._create_request(ctx, "myFunction", argList, resultVal, exceptions, null);

        thisReq.invoke();

        result = thisReq.result().value();

        // Should be an exception thrown.
        assertTrue (thisReq.env ().exception () != null);
        assertTrue (thisReq.env ().exception () instanceof UNKNOWN);
        assertTrue (thisReq.env ().exception ().toString ().indexOf ("Caught an unknown exception with typecode id of IDL:org/jacorb/test/bugs/bugjac631/MyOwnException") != -1);
View Full Code Here

        Request thisReq =
        server._create_request(ctx, "myFunction", argList, resultVal, exceptions, null);

        thisReq.invoke();

        result = thisReq.result().value();

        // Should be an exception thrown.
        assertTrue (thisReq.env ().exception () != null);
        assertTrue (thisReq.env ().exception () instanceof UNKNOWN);
        assertTrue (thisReq.env ().exception ().toString ().indexOf ("A nullpointer exception") != -1);
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.