Package org.jacorb.test

Examples of org.jacorb.test.NonEmptyException


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

      type = new NonEmptyException (1, "Hello");
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);
      dynAny2 = createDynAnyFromAny (any);

View Full Code Here


   {
      final String name1 = "field1"; // specific to IDL
      final String name2 = "field2"; // specific to IDL
      String msg;
      org.omg.CORBA.Any any = null;
      NonEmptyException type = null;
      int oldInt = 1;
      String oldStr = "Hello";
      int newInt = 2;
      String newStr = "GoodBye";
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.NameValuePair [] pairs = null;

      type = new NonEmptyException (oldInt, oldStr);
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);

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

   {
      final String name1 = "field1"; // specific to IDL
      final String name2 = "field2"; // specific to IDL
      String msg;
      org.omg.CORBA.Any any = null;
      NonEmptyException type = null;
      int oldInt = 1;
      String oldStr = "Hello";
      int newInt = 2;
      String newStr = "GoodBye";
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.DynAny dynAny1 = null;
      org.omg.DynamicAny.DynAny dynAny2 = null;
      org.omg.DynamicAny.NameDynAnyPair [] pairs = null;

      type = new NonEmptyException (oldInt, oldStr);
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);

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

    */
    @Test
    public void testInitDynAnyFromDynAny ()
   {
      String msg;
      NonEmptyException 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 = NonEmptyExceptionHelper.type ();
      dynAny = createDynAnyFromTypeCode (tc);

      type = new NonEmptyException (1, "Hello");
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny2 = createDynAnyFromAny (any);

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

    */
    @Test
    public void testInitDynAnyFromAny ()
   {
      String msg;
      NonEmptyException 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 = NonEmptyExceptionHelper.type ();
      dynAny = createDynAnyFromTypeCode (tc);

      type = new NonEmptyException (1, "Hello");
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny2 = createDynAnyFromAny (any);

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

    */
    @Test
    public void testDestroyDynAny ()
   {
      String msg;
      NonEmptyException type;
      org.omg.CORBA.Any any = null;
      org.omg.DynamicAny.DynStruct dynAny = null;

      type = new NonEmptyException (1, "Hello");
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);
      dynAny.destroy ();

View Full Code Here

    */
    @Test
    public void testDestroyComponent ()
   {
      String msg;
      NonEmptyException type;
      org.omg.CORBA.Any any = null;
      org.omg.DynamicAny.DynStruct dynAny = null;
      org.omg.DynamicAny.DynAny comp = null;

      type = new NonEmptyException (1, "Hello");
      any = orb.create_any ();
      NonEmptyExceptionHelper.insert (any, type);
      dynAny = createDynAnyFromAny (any);

      try
View Full Code Here

                {
                    this.fail( "wrong exception type: " + ex );
                }
                else
                {
                    NonEmptyException nex = (NonEmptyException)ex;

                    // The CORBA Spec and the Java Mapping are not
                    // entirely clear whether the "_reason" parameter
                    // should be marshaled along with the id.
                    // JacORB doesn't do it, and hence we don't check
View Full Code Here

        throw new RuntimeException(message);
    }

    public void throwUserExceptionWithMessage1(int f1, String f2) throws NonEmptyException
    {
        throw new NonEmptyException (f1, f2);
    }
View Full Code Here

    public int ex_2( IntHolder p, boolean do_it, int delay )
        throws NonEmptyException
    {
        delay( delay );
        if ( do_it )
            throw new NonEmptyException( "just do it", p.value, "xxx" );
        else
            return p.value;
    }
View Full Code Here

TOP

Related Classes of org.jacorb.test.NonEmptyException

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.