Package org.omg.CORBA

Examples of org.omg.CORBA.ServiceInformation


  public void testCDR_Read_Write()
  {
    OutputStream out = orb.create_output_stream();
    ServiceInformationHelper.write(out, createInstance());

    ServiceInformation r =
      ServiceInformationHelper.read(out.create_input_stream());

    verifyInstance(r);
  }
View Full Code Here


  public void testHelper_Insert_Extract()
  {
    Any a = orb.create_any();
    ServiceInformationHelper.insert(a, createInstance());

    ServiceInformation extracted = ServiceInformationHelper.extract(a);

    verifyInstance(extracted);
  }
View Full Code Here

  /**
   * Verify the verifyer.
   */
  public void testSelf()
  {
    ServiceInformation s = createInstance();
    verifyInstance(s);
  }
View Full Code Here

    verifyInstance(s);
  }

  protected ServiceInformation createInstance()
  {
    ServiceInformation s = new ServiceInformation();

    s.service_options = new int[] { 9, 8, 7, 4, 5 };

    s.service_details =
      new ServiceDetail[]
View Full Code Here

    return s;
  }

  protected void verifyInstance(ServiceInformation x)
  {
    ServiceInformation s = createInstance();

    assertEquals("service_options.length", s.service_options.length,
                 x.service_options.length
                );
    for (int i = 0; i < s.service_options.length; i++)
View Full Code Here

TOP

Related Classes of org.omg.CORBA.ServiceInformation

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.