Package org.omg.CosNotification

Examples of org.omg.CosNotification.StructuredEvent


    public void testToStructured()
    {
        objectUnderTest_.setTypedEvent(CoffeeHelper.id(), DRINKING_COFFEE_ID, EMPTY_PROPS);

        StructuredEvent _structEvent = objectUnderTest_.toStructuredEvent();

        assertEquals(1, _structEvent.filterable_data.length);

        assertEquals("operation", _structEvent.filterable_data[0].name);
View Full Code Here


        super(name, setup);
    }

    public void setUpTest()
    {
        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

        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

        runEvaluation(_structuredEvent, "$event_name == 'ALARM'");
    }

    public void testShorthandVariableHeader() throws Exception
    {
        StructuredEvent _structuredEvent = testUtils_.getStructuredEvent();

        Any _any = getORB().create_any();

        _structuredEvent.header.variable_header = new Property[2];
View Full Code Here

        runEvaluation(_structuredEvent, "$string == $.header.variable_header(string)");
    }

    public void testShorthandFilterableData() throws Exception
    {
        StructuredEvent _structuredEvent = testUtils_.getStructuredEvent();

        Any _any = getORB().create_any();

        Property[] _props = new Property[2];
        _any.insert_long(10);
View Full Code Here

        }
    }

    public void testAccessNonExistingProperty() throws Exception
    {
        StructuredEvent event = testUtils_.getStructuredEvent();

        try
        {
            runEvaluation(event, "$.filterable_data(PROPERTY) == 1");
View Full Code Here

    public void testWhiteboardExpr() throws Exception
    {
        Any _any = getORB().create_any();

        StructuredEvent _event = testUtils_.getStructuredEvent();
        _event.header.variable_header = new Property[1];

        Any _anyInt = getORB().create_any();
        _anyInt.insert_long(10);
View Full Code Here

    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

        for (int x = 0; x < events.length; ++x)
        {
            Any any = getClientORB().create_any();
            any.insert_long(x);
            events[x] = new StructuredEvent(header, new Property[0], any);
        }

        _sender.pushEvents(events);

        _receiver.join();
View Full Code Here

    public void setUpTest() throws Exception
    {
        messageFactory_ = new DefaultMessageFactory(getConfiguration());
        addDisposable(messageFactory_);
       
        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

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.