Package org.omg.CORBA

Examples of org.omg.CORBA.TypeCode.kind()


  }

  public void test_create_exception_tc()
  {
    TypeCode t = orb.create_exception_tc(id, name, new StructMember[ 0 ]);
    assertEquals("create_exception_tc", t.kind().value(), TCKind._tk_except);
    idname(t);
  }

  public void test_create_fixed_tc()
  {
View Full Code Here


    try
      {
        TypeCode t = orb.create_fixed_tc((short) 15, (short) 6);
        assertEquals("fixed digits", t.fixed_digits(), (short) 15);
        assertEquals("fixed scale", t.fixed_scale(), (short) 6);
        assertEquals("create_fixed_tc", t.kind().value(), TCKind._tk_fixed);
      }
    catch (BadKind ex)
      {
        fail("BadKind exception when testing fixed tc");
      }
View Full Code Here

  }

  public void test_create_sequence_tc()
  {
    TypeCode t = orb.create_sequence_tc(length, type);
    assertEquals("create_sequence_tc", t.kind().value(), TCKind._tk_sequence);
    length(t);
    component(t);
  }

  public void test_create_string_tc()
View Full Code Here

  }

  public void test_create_string_tc()
  {
    TypeCode t = orb.create_string_tc(length);
    assertEquals("create_string_tc", t.kind().value(), TCKind._tk_string);
    length(t);
  }

  public void test_create_struct_tc()
  {
View Full Code Here

  }

  public void test_create_struct_tc()
  {
    TypeCode t = orb.create_struct_tc(id, name, new StructMember[ 0 ]);
    assertEquals("create_struct_tc", t.kind().value(), TCKind._tk_struct);
    idname(t);
  }

  public void test_create_union_tc()
  {
View Full Code Here

  }

  public void test_create_union_tc()
  {
    TypeCode t = orb.create_union_tc(id, name, type, new UnionMember[ 0 ]);
    assertEquals("create_union_tc", t.kind().value(), TCKind._tk_union);
    idname(t);
  }

  public void test_create_value_box_tc()
  {
View Full Code Here

  }

  public void test_create_value_box_tc()
  {
    TypeCode t = orb.create_value_box_tc(id, name, type);
    assertEquals("create_value_box_tc", t.kind().value(), TCKind._tk_value_box);
    idname(t);
  }

  public void test_create_value_tc()
  {
View Full Code Here

  public void test_create_value_tc()
  {
    TypeCode t =
      orb.create_value_tc(id, name, (short) 0, type, new ValueMember[ 0 ]);
    assertEquals("create_value_tc", t.kind().value(), TCKind._tk_value);
    idname(t);
  }

  public void test_create_wstring_tc()
  {
View Full Code Here

  }

  public void test_create_wstring_tc()
  {
    TypeCode t = orb.create_wstring_tc(length);
    assertEquals("create_wstring_tc", t.kind().value(), TCKind._tk_wstring);
    length(t);
  }

  public void test_get_primitive_tc()
  {
View Full Code Here

  }

  public void test_get_primitive_tc()
  {
    TypeCode t = orb.get_primitive_tc(TCKind.tk_short);
    assertEquals("get_primitive_tc", t.kind().value(), TCKind._tk_short);
  }

  void component(TypeCode t)
  {
    try
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.