Пример #1
0
  @Test
  public void testWithJacORBORB() throws Exception {
    Properties props = new Properties();
    props.setProperty("org.omg.CORBA.ORBClass", "org.jacorb.orb.ORB");
    props.setProperty("org.omg.CORBA.ORBSingletonClass", "org.jacorb.orb.ORBSingleton");

    org.omg.CORBA.ORB orb = setup.getAnotherORB(props);

    assertTrue(orb instanceof org.jacorb.orb.ORB);

    ValueServer server = ValueServerHelper.narrow(orb.string_to_object(setup.getServerIOR()));

    String result = server.receive_list(new NodeImpl(1234));
    assertEquals("list of length: 1 -- 1234", result);
  }
Пример #2
0
  @Before
  public void setUp() throws Exception {
    server = ValueServerHelper.narrow(setup.getServerObject());

    // for warm up
    server.receive_string("a", "b");
  }
Пример #3
0
 @Test
 public void testModifiedStubsAlsoWorkWithTheSunORB() {
   String result = server.receive_list(new NodeImpl(1234));
   assertEquals("list of length: 1 -- 1234", result);
 }