47484950515253545556
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); }
585960616263646566
public void testHelper_Insert_Extract() { Any a = orb.create_any(); ServiceInformationHelper.insert(a, createInstance()); ServiceInformation extracted = ServiceInformationHelper.extract(a); verifyInstance(extracted); }
8384858687888990
/** * Verify the verifyer. */ public void testSelf() { ServiceInformation s = createInstance(); verifyInstance(s); }
8990919293949596979899
verifyInstance(s); } protected ServiceInformation createInstance() { ServiceInformation s = new ServiceInformation(); s.service_options = new int[] { 9, 8, 7, 4, 5 }; s.service_details = new ServiceDetail[]
105106107108109110111112113114115
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++)