Package org.jboss.test.iiop.interfaces

Examples of org.jboss.test.iiop.interfaces.StatelessSession.testException()


         (StatelessSessionHome)PortableRemoteObject.narrow(
                    getInitialContext().lookup(StatelessSessionHome.JNDI_NAME),
                    StatelessSessionHome.class);
      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      assertEquals("#0", session.testException(0));
      assertEquals("#1", session.testException(1));
      assertEquals("#2", session.testException(2));
      try
      {
         session.testException(-2);
View Full Code Here


                    getInitialContext().lookup(StatelessSessionHome.JNDI_NAME),
                    StatelessSessionHome.class);
      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      assertEquals("#0", session.testException(0));
      assertEquals("#1", session.testException(1));
      assertEquals("#2", session.testException(2));
      try
      {
         session.testException(-2);
         fail("NegativeArgumentException expected but not thrown.");
View Full Code Here

                    StatelessSessionHome.class);
      StatelessSession session = home.create();
      //----------------------------------------------------------------------
      assertEquals("#0", session.testException(0));
      assertEquals("#1", session.testException(1));
      assertEquals("#2", session.testException(2));
      try
      {
         session.testException(-2);
         fail("NegativeArgumentException expected but not thrown.");
      }
View Full Code Here

      assertEquals("#0", session.testException(0));
      assertEquals("#1", session.testException(1));
      assertEquals("#2", session.testException(2));
      try
      {
         session.testException(-2);
         fail("NegativeArgumentException expected but not thrown.");
      }
      catch (NegativeArgumentException na)
      {
         assertEquals(-2, na.getNegativeArgument());
View Full Code Here

      {
         assertEquals(-2, na.getNegativeArgument());
      }
      try
      {
         session.testException(-1);
         fail("NegativeArgumentException expected but not thrown.");
      }
      catch (NegativeArgumentException na)
      {
         assertEquals(-1, na.getNegativeArgument());
View Full Code Here

      }
      catch (NegativeArgumentException na)
      {
         assertEquals(-1, na.getNegativeArgument());
      }
      assertEquals("#0", session.testException(0));
      //----------------------------------------------------------------------
      session.remove();
   }
  
   public void test_FooValueToObject()
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.