Package org.omg.CosNotification

Examples of org.omg.CosNotification.EventType


        controlSubscription_.verify();
    }

    public void testAddMultipleDoesNotifyOnce() throws Exception
    {
        final EventType eventType = new EventType("domain", "type");

        EventType[] added = new EventType[] { eventType, eventType };

        mockSubscription_.subscription_change(new EventType[] { eventType }, EMPTY);
        controlSubscription_.setMatcher(MockControl.ARRAY_MATCHER);
View Full Code Here


        controlSubscription_.verify();
    }

    public void testAddExistingDoesNotNotify() throws Exception
    {
        EventType[] added = new EventType[] { new EventType("domain", "type") };

        mockSubscription_.subscription_change(added, EMPTY);
        controlSubscription_.setMatcher(MockControl.ARRAY_MATCHER);

        controlSubscription_.replay();
View Full Code Here

        controlSubscription_.verify();
    }

    public void testReplaceWithEqualSetDoesNotNotify() throws Exception
    {
        EventType[] content = new EventType[] { new EventType("domain", "type") };

        controlSubscription_.replay();

        objectUnderTest_.changeSet(content, EMPTY);
View Full Code Here

        controlSubscription_.verify();
    }

    public void testReplaceNotifiesAboutAdded() throws Exception
    {
        EventType[] content = new EventType[] { new EventType("domain", "type") };

        EventType eventType = new EventType("domain2", "type2");
        EventType[] replace = new EventType[] { new EventType("domain", "type"), eventType };

        mockSubscription_.subscription_change(new EventType[] { eventType }, EMPTY);
        controlSubscription_.setMatcher(MockControl.ARRAY_MATCHER);

        controlSubscription_.replay();
View Full Code Here

        controlSubscription_.verify();
    }

    public void testReplaceNotifiesAboutRemoved() throws Exception
    {
        EventType[] content = new EventType[] { new EventType("domain", "type") };

        mockSubscription_.subscription_change(EMPTY, content);
        controlSubscription_.setMatcher(MockControl.ARRAY_MATCHER);

        controlSubscription_.replay();
View Full Code Here

    public void testFalseMatch() throws Exception
    {
        ConstraintExp[] _constraintExp = new ConstraintExp[1];
        EventType[] _eventType = new EventType[1];
        _eventType[0] = new EventType("*", "*");
        String _expression = "FALSE";
        _constraintExp[0] = new ConstraintExp(_eventType, _expression);
        filter_.add_constraints(_constraintExp);

        assertFalse(filter_.match(testPerson_));
View Full Code Here

     */
    public void testMatch() throws Exception
    {
        ConstraintExp[] _constraintExp = new ConstraintExp[1];
        EventType[] _eventType = new EventType[1];
        _eventType[0] = new EventType("*", "*");

        _constraintExp[0] = new ConstraintExp(_eventType, "$.first_name == 'firstname'");
        filter_.add_constraints(_constraintExp);

        // this should match
View Full Code Here

        assertTrue(filter_.match(testPerson_));
    }

    public void testAccessNonExistingMember() throws Exception
    {
        EventType[] _eventType = new EventType[] { new EventType("*", "*") };

        ConstraintExp[] _constraintExp = new ConstraintExp[] {
                new ConstraintExp(_eventType, "$not_exist == 3"),
                new ConstraintExp(_eventType, "TRUE"), };

View Full Code Here

    }

    public void testMatch_EventType_IsEmptyString() throws Exception
    {
        ConstraintExp[] _constraintExp = new ConstraintExp[1];
        EventType[] _eventType = new EventType[] { new EventType("", "") };

        _constraintExp[0] = new ConstraintExp(_eventType, "$.first_name == 'firstname'");
        filter_.add_constraints(_constraintExp);

        // this should match
View Full Code Here

    }

    public void testMatch_FilterString_IsEmpty() throws Exception
    {
        ConstraintExp[] _constraintExp = new ConstraintExp[1];
        EventType[] _eventType = new EventType[] { new EventType("*", "*") };

        _constraintExp[0] = new ConstraintExp(_eventType, "");
        filter_.add_constraints(_constraintExp);

        // this should match
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.