Esempio n. 1
0
  protected void setUp() throws Exception {
    super.setUp();

    Properties props = new Properties();
    props.put(Attributes.ENABLE_TYPED_CHANNEL, "on");

    servant_ = AbstractChannelFactory.newFactory(props);
    org.omg.CORBA.Object obj = servant_.activate();

    typedChannelFactory_ = TypedEventChannelFactoryHelper.narrow(obj);

    objectUnderTest_ =
        typedChannelFactory_.create_typed_channel(
            new Property[0], new Property[0], new IntHolder());
  }
Esempio n. 2
0
  protected void tearDown() throws Exception {
    super.tearDown();

    servant_.destroy();
  }