Examples of EmptyException


Examples of org.jacorb.test.EmptyException

    public char ex_op(char ch, int delay) throws EmptyException
    {
        sleep(delay);
        if (ch == 'e')
        {
            throw new EmptyException();
        }
        else if (ch == '$')
        {
            return '\u20AC'// euro sign, will raise DATA_CONVERSION
        }
View Full Code Here

Examples of org.jacorb.test.EmptyException

    public void ex_1( boolean do_it, int delay ) throws EmptyException
    {
        delay( delay );
        if ( do_it )
            throw new EmptyException();
        else
            return;
    }
View Full Code Here

Examples of org.jacorb.test.EmptyException

    {
        delay( delay );
        if ( non_empty )
            throw new NonEmptyException( 4321, "zzz" );
        else
            throw new EmptyException( "reason" );
    }
View Full Code Here

Examples of org.jacorb.test.EmptyException

    * Tests creating a DynAny object from an Any object using the
    * DynAnyFactory object.
    */
   public void testFactoryCreateFromAny ()
   {
      EmptyException type = null;
      org.omg.CORBA.Any any = null;

      type = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, type);

      createDynAnyFromAny (any);
   }
View Full Code Here

Examples of org.jacorb.test.EmptyException

    * Test comparing DynAny values.
    */
   public void testCompareDynAny ()
   {
      String msg;
      EmptyException type;
      org.omg.CORBA.Any any = null;
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.DynStruct dynAny2 = null;

      type = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);
      dynAny2 = createDynAnyFromAny (any);

View Full Code Here

Examples of org.jacorb.test.EmptyException

   {
      String msg;
      String memberName = null;
      TCKind memberKind = null;
      org.omg.CORBA.Any any = null;
      EmptyException exception = null;
      org.omg.DynamicAny.DynStruct dynAny = null;

      exception = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, exception);
      dynAny = createDynAnyFromAny (any);

      // test getting the name of the current member
View Full Code Here

Examples of org.jacorb.test.EmptyException

    */
   public void testAccessStructNameValuePairs ()
   {
      String msg;
      org.omg.CORBA.Any any = null;
      EmptyException type = null;
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.NameValuePair [] pairs = null;

      type = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);

      // test extracting the name/value pairs as Anys
View Full Code Here

Examples of org.jacorb.test.EmptyException

    */
   public void testAccessStructDynAnyPairs ()
   {
      String msg;
      org.omg.CORBA.Any any = null;
      EmptyException type = null;
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.NameDynAnyPair [] pairs = null;

      type = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);

      // test extracting the name/value pairs as Anys
View Full Code Here

Examples of org.jacorb.test.EmptyException

    * Test initializing a DynAny object from another DynAny object.
    */
   public void testInitDynAnyFromDynAny ()
   {
      String msg;
      EmptyException type;
      org.omg.CORBA.Any any = null;
      org.omg.CORBA.TypeCode tc = null;
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.DynStruct dynAny2 = null;

      tc = EmptyExceptionHelper.type ();
      dynAny = createDynAnyFromTypeCode (tc);

      type = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, type);
      dynAny2 = createDynAnyFromAny (any);

      msg = "Failed to initialize a DynAny object from another DynAny ";
View Full Code Here

Examples of org.jacorb.test.EmptyException

    * Test initializing a DynAny object from an Any value.
    */
   public void testInitDynAnyFromAny ()
   {
      String msg;
      EmptyException type;
      org.omg.CORBA.Any any = null;
      org.omg.CORBA.TypeCode tc = null;
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.DynStruct dynAny2 = null;

      tc = EmptyExceptionHelper.type ();
      dynAny = createDynAnyFromTypeCode (tc);

      type = new EmptyException ();
      any = orb.create_any ();
      EmptyExceptionHelper.insert (any, type);
      dynAny2 = createDynAnyFromAny (any);

      msg = "Failed to initialize a DynAny object from an Any object ";
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.