Package org.omg.CORBA

Examples of org.omg.CORBA.IntHolder


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

    public void testObtainNotificationPullSupplierFiresEvent() throws Exception
    {
        IntHolder _proxyId = new IntHolder();

        final List _events = new ArrayList();

        ProxyEventListener _listener = new ProxyEventListener()
        {
View Full Code Here


        assertEquals(objectUnderTest_, ((ApplicationEvent) _events.get(0)).getSource());
    }

    public void testDenyCreateNotificationPullSupplier() throws Exception
    {
        IntHolder _proxyId = new IntHolder();

        ProxyEventListener _listener = new ProxyEventListener()
        {
            public void actionProxyCreationRequest(ProxyEvent e) throws AdminLimitExceeded
            {
View Full Code Here

        }
    }

    public void testEvents() throws Exception
    {
        IntHolder _proxyId = new IntHolder();
        final AtomicInteger _counter = new AtomicInteger(0);

        ProxyEventListener _listener = new ProxyEventListener()
        {
            public void actionProxyCreated(ProxyEvent event)
View Full Code Here

        assertTrue(containsValue(channel_.get_all_supplieradmins(), supplierAdmin_.MyID()));
    }

    public void testCreateConsumerAdmin() throws Exception
    {
        IntHolder id = new IntHolder();
        ConsumerAdmin admin = channel_.new_for_consumers(InterFilterGroupOperator.AND_OP, id);

        assertEquals(InterFilterGroupOperator.AND_OP, admin.MyOperator());

        assertEquals(id.value, admin.MyID());
View Full Code Here

        assertEquals(admin, channel_.get_consumeradmin(id.value));
    }

    public void testCreateSupplierAdmin() throws Exception
    {
        IntHolder id = new IntHolder();
        SupplierAdmin admin = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, id);

        assertEquals(InterFilterGroupOperator.AND_OP, admin.MyOperator());

        assertEquals(id.value, admin.MyID());
View Full Code Here

        assertEquals(admin, channel_.get_supplieradmin(id.value));
    }

    public void testDestroyAdmin() throws Exception
    {
        IntHolder id = new IntHolder();
        SupplierAdmin admin1 = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, id);

        IntHolder id2 = new IntHolder();
        SupplierAdmin admin2 = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, id2);

        assertEquals(admin1, channel_.get_supplieradmin(id.value));

        admin1.destroy();
View Full Code Here

        super(name, setup);
    }

    public void testSetQos() throws Exception
    {
        IntHolder ih = new IntHolder();

        ProxySupplier ps = consumerAdmin_.obtain_notification_push_supplier(
                ClientType.STRUCTURED_EVENT, ih);

        Property[] props = new Property[2];
View Full Code Here

        int[] _allKeys = channel_.get_all_consumeradmins();

        assertContains(_allKeys, 0);

        IntHolder ih = new IntHolder();
        channel_.new_for_consumers(InterFilterGroupOperator.AND_OP, ih);

        _allKeys = channel_.get_all_consumeradmins();
        assertContains(_allKeys, ih.value);
View Full Code Here

        int[] _allKeys = channel_.get_all_supplieradmins();

        assertContains(_allKeys, 0);

        IntHolder ih = new IntHolder();
        channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP, ih);

        _allKeys = channel_.get_all_supplieradmins();
        assertContains(_allKeys, ih.value);
View Full Code Here

    }

    public void testDestroyAdmins() throws Exception
    {
        ConsumerAdmin _consumerAdmin = channel_.new_for_consumers(InterFilterGroupOperator.AND_OP,
                new IntHolder());
        SupplierAdmin _supplierAdmin = channel_.new_for_suppliers(InterFilterGroupOperator.AND_OP,
                new IntHolder());

        _consumerAdmin.destroy();
        _supplierAdmin.destroy();

        try
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.