Package org.omg.CosNotification

Examples of org.omg.CosNotification.StructuredEvent


    public synchronized StructuredEvent toStructuredEvent()
    {
        if (structuredEventValue_ == null)
        {
            structuredEventValue_ = new StructuredEvent();

            structuredEventValue_.header = sEventHeader;
            structuredEventValue_.filterable_data = getFilterableHeader();
            structuredEventValue_.remainder_of_body = sUndefinedAny;
        }
View Full Code Here


    public void testStructuredToAny() throws Exception
    {
        Message _notifyEvent = messageFactory_.newMessage(testStructured_);
        assertNotNull(_notifyEvent);
        Any _any = _notifyEvent.toAny();
        StructuredEvent _event = StructuredEventHelper.extract(_any);
        assertNotNull(_event);
        assertEquals("domain", _event.header.fixed_header.event_type.domain_name);
        assertEquals("type", _event.header.fixed_header.event_type.type_name);
    }
View Full Code Here

    public void testStructuredToStructured() throws Exception
    {
        Message _notifyEvent = messageFactory_.newMessage(testStructured_);
        assertNotNull(_notifyEvent);
        StructuredEvent _event = _notifyEvent.toStructuredEvent();
        assertNotNull(_event);
        assertEquals("domain", _event.header.fixed_header.event_type.domain_name);
        assertEquals("type", _event.header.fixed_header.event_type.type_name);
    }
View Full Code Here

    }

    public void testAnyToStructured() throws Exception
    {
        Message _notifyEvent = messageFactory_.newMessage(testPerson_);
        StructuredEvent _structured = _notifyEvent.toStructuredEvent();
        assertNotNull(_structured);
        assertEquals("%ANY", _structured.header.fixed_header.event_type.type_name);
        assertEquals("", _structured.header.fixed_header.event_type.domain_name);
        assertEquals("", _structured.header.fixed_header.event_name);
View Full Code Here

                    {
                        return null;
                    }
                });

        StructuredEvent _recvd = _mesg.toStructuredEvent();

        assertEquals(testStructured_.header.fixed_header.event_name,
                _recvd.header.fixed_header.event_name);

        assertEquals(testStructured_.remainder_of_body, _recvd.remainder_of_body);
View Full Code Here

        assertEquals(testStructured_.remainder_of_body, _recvd.remainder_of_body);
    }

    public void testWrappedAnyToAny() throws Exception
    {
        StructuredEvent _wrappedAny = new StructuredEvent();

        EventHeader _header = new EventHeader();
        FixedEventHeader _fixed = new FixedEventHeader();
        _fixed.event_name = "";
        _fixed.event_type = new EventType("", "%ANY");
View Full Code Here

        messageFactory_ = new DefaultMessageFactory(getORB(), getConfiguration());

        testPerson_ = testUtils_.getTestPersonAny();

        testStructured_ = 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;
View Full Code Here

    public void setUpTest() throws Exception
    {
        messageFactory_ = new DefaultMessageFactory(getORB(), getConfiguration());

        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;
View Full Code Here

    {
        Any any = toAny("value");
       
        objectUnderTest_.setAny(any);
       
        StructuredEvent event = objectUnderTest_.toStructuredEvent();
       
        assertEquals(any, event.remainder_of_body);
        assertEquals("%ANY", event.header.fixed_header.event_type.type_name);
    }
View Full Code Here

        runEvaluation(_testData, "$domain_name == 'TESTING'");
        runEvaluation(_testData, "$type_name == 'TESTING'");
        runEvaluation(_testData, "$event_name == 'ALARM'");

        StructuredEvent _structuredEvent = testUtils_.getStructuredEvent();

        runEvaluation(_structuredEvent, "$domain_name == 'TESTING'");
        runEvaluation(_structuredEvent, "$type_name == 'TESTING'");
        runEvaluation(_structuredEvent, "$event_name == 'ALARM'");
    }
View Full Code Here

TOP

Related Classes of org.omg.CosNotification.StructuredEvent

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.