Package org.omg.CosNotification

Examples of org.omg.CosNotification.EventType


    {
        if (typedEvent_ == null)
        {
            typedEvent_ = new Property[parameters_.length + 1];

            EventType _eventType = new EventType();
            _eventType.domain_name = idlInterfaceName_;
            _eventType.type_name = operationName_;

            Any _eventTypeAny = sORB.create_any();
            EventTypeHelper.insert(_eventTypeAny, _eventType);
View Full Code Here


        trueFilter_ = channel_.default_filter_factory().create_filter("EXTENDED_TCL");

        ConstraintExp[] _constraintExp = new ConstraintExp[1];
        EventType[] _eventType = new EventType[1];
        _eventType[0] = new EventType("*", "*");
        String _expression = "TRUE";
        _constraintExp[0] = new ConstraintExp(_eventType, _expression);
        trueFilter_.add_constraints(_constraintExp);

        falseFilter_ = channel_.default_filter_factory().create_filter("EXTENDED_TCL");
        _constraintExp = new ConstraintExp[1];
        _eventType = new EventType[1];
        _eventType[0] = new EventType("*", "*");
       
        _constraintExp[0] = new ConstraintExp(_eventType, "FALSE");
       falseFilter_.add_constraints(_constraintExp);
       
        assertTrue(trueFilter_.match(testPerson_));
View Full Code Here

        StructuredEvent[] events = new StructuredEvent[testSize];

        FixedEventHeader fixedHeader = new FixedEventHeader();
        fixedHeader.event_name = "TEST";
        fixedHeader.event_type = new EventType("TESTING", "TESTING");
        EventHeader header = new EventHeader(fixedHeader, new Property[0]);

        StructuredPushReceiver _receiver = new StructuredPushReceiver(getClientORB(), testSize);
        StructuredPushSender _sender = new StructuredPushSender(getClientORB());
View Full Code Here

       
        structuredEvent_ = new StructuredEvent();
        EventHeader _header = new EventHeader();
        FixedEventHeader _fixed = new FixedEventHeader();
        _fixed.event_name = "eventname";
        _fixed.event_type = new EventType("domain", "type");
        _header.fixed_header = _fixed;
        _header.variable_header = new Property[0];

        structuredEvent_.header = _header;
View Full Code Here

*/
public class EventTypeUtilTest extends TestCase
{
    public void testToString()
    {
        EventType et = new EventType();
        et.domain_name = "domain";
        et.type_name = "type";
       
        String str = EventTypeWrapper.toString(et);
        assertNotNull(str);
View Full Code Here

        assertEquals("domain/type", str);
    }
   
    public void testArrayToString()
    {
        EventType et = new EventType();
        et.domain_name = "domain";
        et.type_name = "type";
       
        EventType et2 = new EventType();
        et2.domain_name = "domain2";
        et2.type_name = "type2";
       
        String str = EventTypeWrapper.toString(new EventType[]{et, et2});
       
View Full Code Here

     */
    public void _testRemoveNonExistent() throws Exception {
        offerManager_.addListener(listener_);

        offerManager_.offer_change(EMPTY_EVENT_TYPE_ARRAY,
                                   new EventType[] { new EventType("domain1", "type1") });

        assertEquals(0, added_.size());
        assertEquals(1, removed_.size());
        assertEquals("domain1", ((EventType)removed_.get(0)).domain_name);
        assertEquals("type1", ((EventType)removed_.get(0)).type_name);
View Full Code Here

        assertEquals("type1", ((EventType)removed_.get(0)).type_name);
    }


    public void testRemoveNotifies() throws Exception {
        EventType[] _toBeAdded = new EventType[] {new EventType("domain1", "type1")};

        offerManager_.offer_change(_toBeAdded, EMPTY_EVENT_TYPE_ARRAY);

        offerManager_.addListener(listener_);

        offerManager_.offer_change(EMPTY_EVENT_TYPE_ARRAY,
                                   new EventType[] { new EventType("domain1", "type1") });

        assertEquals(0, added_.size());
        assertEquals(1, removed_.size());
        assertEquals("domain1", ((EventType)removed_.get(0)).domain_name);
        assertEquals("type1", ((EventType)removed_.get(0)).type_name);

        // shouldn't cause a problem
        offerManager_.offer_change(EMPTY_EVENT_TYPE_ARRAY,
                                   new EventType[] { new EventType("domain1", "type1") });
    }
View Full Code Here

                                   new EventType[] { new EventType("domain1", "type1") });
    }


    public void testAddNotifies() throws Exception {
        EventType[] _toBeAdded = new EventType[] {new EventType("domain1", "type1")};

        offerManager_.offer_change(_toBeAdded, EMPTY_EVENT_TYPE_ARRAY);

        offerManager_.addListener(listener_);

        _toBeAdded = new EventType[] {new EventType("domain2", "type2")};

        offerManager_.offer_change(_toBeAdded, EMPTY_EVENT_TYPE_ARRAY);

        assertEquals(1, added_.size());
View Full Code Here

                try
                {
                    Property[] _props = mesg.toTypedEvent();

                    assertEquals("event_type", _props[0].name);
                    EventType et = EventTypeHelper.extract(_props[0].value);

                    assertEquals(CoffeeHelper.id(), et.domain_name);
                    assertEquals(DRINKING_COFFEE_ID, et.type_name);

                    assertEquals("name", _props[1].name);
View Full Code Here

TOP

Related Classes of org.omg.CosNotification.EventType

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.