Package org.omg.CORBA

Examples of org.omg.CORBA.IntHolder


    }
   
    public void testCreateSupplierAdmin() throws Exception
    {
        assertEquals(0, objectUnderTest_.get_all_supplieradmins().length);
        IntHolder id = new IntHolder();
       
        org.omg.CosTypedNotifyChannelAdmin.TypedSupplierAdmin admin = objectUnderTest_.new_for_typed_notification_suppliers(InterFilterGroupOperator.OR_OP, id);
       
        int[] ids = objectUnderTest_.get_all_supplieradmins();
       
View Full Code Here


        assertEquals(admin, objectUnderTest_.get_supplieradmin(id.value));
    }
   
    public void testInterFilterGroupOperator() throws Exception
    {
        IntHolder id = new IntHolder();
        org.omg.CosTypedNotifyChannelAdmin.TypedConsumerAdmin admin1 = objectUnderTest_.new_for_typed_notification_consumers(InterFilterGroupOperator.OR_OP, id);
        assertEquals(InterFilterGroupOperator.OR_OP, admin1.MyOperator());
       
        org.omg.CosTypedNotifyChannelAdmin.TypedSupplierAdmin admin2 = objectUnderTest_.new_for_typed_notification_suppliers(InterFilterGroupOperator.OR_OP, id);
        assertEquals(InterFilterGroupOperator.OR_OP, admin2.MyOperator());
View Full Code Here

    public void connect(EventChannel channel, boolean useOrSemantic)

    throws AdminLimitExceeded, AlreadyConnected, AdminNotFound
    {

        IntHolder _proxyId = new IntHolder();
        IntHolder _adminId = new IntHolder();

        if (useOrSemantic)
        {
            myAdmin_ = channel.new_for_suppliers(InterFilterGroupOperator.OR_OP, _adminId);
            Assert.assertEquals(InterFilterGroupOperator.OR_OP, myAdmin_.MyOperator());
View Full Code Here

        assertEquals(10, consumerAdmin_.MyID());
    }

    public void testCreateTypedPullSupplier() throws Exception
    {
        IntHolder id = new IntHolder();

        TypedProxyPullSupplier supplier = consumerAdmin_.obtain_typed_notification_pull_supplier(
                PullCoffeeHelper.id(), id);

        assertEquals(supplier, consumerAdmin_.get_proxy_supplier(id.value));
View Full Code Here

        assertEquals(supplier, supplier.MyAdmin().get_proxy_supplier(id.value));
    }

    public void testCreateTypedPushSupplier() throws Exception
    {
        IntHolder id = new IntHolder();

        TypedProxyPushSupplier supplier = consumerAdmin_.obtain_typed_notification_push_supplier(
                CoffeeHelper.id(), id);

        assertEquals(supplier, consumerAdmin_.get_proxy_supplier(id.value));
View Full Code Here

    public void testDestroyChannelDisconnectsClients() throws Exception
    {
        EventChannel _channel =
            getEventChannelFactory().create_channel(new Property[0],
                    new Property[0],
                    new IntHolder());

        TestClientOperations[] _testClients = new TestClientOperations[] {
                new CosEventPullSender(getClientORB(), testData_),
                new CosEventPushSender(getClientORB(), testData_),
                new CosEventPushReceiver(getClientORB()),
View Full Code Here

        PullCoffee _pullCoffee = PullCoffeeHelper.narrow(getClientORB().string_to_object(
                _objectAsString));

        StringHolder _name = new StringHolder();
        IntHolder _minutes = new IntHolder();

        assertFalse(_pullCoffee.try_drinking_coffee(_name, _minutes));
    }
View Full Code Here

        PullCoffee _pullCoffee = PullCoffeeHelper.narrow(getClientORB().string_to_object(
                _objectAsString));

        StringHolder _name = new StringHolder();
        IntHolder _minutes = new IntHolder();

        objectUnderTest_.getMessageConsumer().queueMessage(_mesg.getHandle());

        assertTrue(_pullCoffee.try_drinking_coffee(_name, _minutes));
View Full Code Here

        final PullCoffee _pullCoffee = PullCoffeeHelper.narrow(getClientORB().string_to_object(
                _objectAsString));

        final StringHolder _name = new StringHolder();
        final IntHolder _minutes = new IntHolder();

        final CountDownLatch _latch = new CountDownLatch(1);

        new Thread()
        {
View Full Code Here

        assertNotNull(factory_);
    }
   
    public void testCreateChannel() throws Exception
    {
        final IntHolder channelID = new IntHolder();
        final TypedEventChannel channel = factory_.create_typed_channel(new Property[0], new Property[0], channelID);
        assertNotNull(channel);
       
        final TypedEventChannel lookup = factory_.get_typed_event_channel(channelID.value);
        assertTrue(channel._is_equivalent(lookup));
View Full Code Here

TOP

Related Classes of org.omg.CORBA.IntHolder

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.