Package gnu.testlet.org.omg.PortableServer.POAOperations.communication

Examples of gnu.testlet.org.omg.PortableServer.POAOperations.communication.poa_comTester.throwException()


    try
      {
        other_poa.sayHello();
        try
          {
            other_poa.throwException(555);
            fail("Must throw exception");
          }
        catch (ourUserException ex)
          {
            assertEquals("Exception code", 555, ex.ourField);
View Full Code Here


      {
        poa_comTester object =
          poa_comTesterHelper.narrow(readIOR(allServants [ i ], orb));
        try
          {
            object.throwException(64);
            fail("User exception is not thrown");
          }
        catch (ourUserException ex)
          {
            assertEquals("Wrong field in user exception.", 64, ex.ourField);
View Full Code Here

            assertEquals("Wrong field in user exception.", 64, ex.ourField);
          }

        try
          {
            object.throwException(-1);
            fail("System exception is not thrown");
          }
        catch (BAD_OPERATION ex)
          {
            assertEquals("SysEx minor code", 456, ex.minor);
View Full Code Here

        );

        // Throw remote system exception
        try
          {
            Tester2.throwException(-1);
            fail("BAD_OPERATION should be thrown");
          }
        catch (BAD_OPERATION ex)
          {
            assertEquals("Minor code", ex.minor, 456);
View Full Code Here

          }

        // Throw remote user exception
        try
          {
            Tester2.throwException(24);
            fail("UserException should be thrown");
          }
        catch (ourUserException ex)
          {
            assertEquals("Custom field", ex.ourField, 24);
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.