Package org.jacorb.notification.filter

Examples of org.jacorb.notification.filter.MappingFilterImpl.match()


                getConfiguration(), filter_, defaultValue);

        AnyHolder anyHolder = new AnyHolder();

        // filter is empty. should not match
        assertTrue(!_mappingFilter.match(testPerson_, anyHolder));

        // add some filter data
        Any resultToSet = getORB().create_any();

        resultToSet.insert_string("this indicates success");
View Full Code Here


        assertEquals("$.first_name == 'firstname'", _info[0].constraint_expression.constraint_expr);
        assertEquals(resultToSet, _info[0].value);

        // this should match
        assertTrue(_mappingFilter.match(testPerson_, anyHolder));
        assertEquals(resultToSet, anyHolder.value);
    }

    public void testMatch2() throws Exception
    {
View Full Code Here

                getConfiguration(), filter_, defaultValue);

        AnyHolder anyHolder = new AnyHolder();

        // filter is empty. should not match
        assertTrue(!_mappingFilter.match(testPerson_, anyHolder));

        // add some filter data
        Any resultToSet = getORB().create_any();

        resultToSet.insert_string("this is 10");
View Full Code Here

        Any testMessage = getORB().create_any();
        testMessage.insert_long(10);

        // this should match
        assertTrue(_mappingFilter.match(testMessage, anyHolder));
        assertEquals("this is 10", anyHolder.value.extract_string());

        testMessage = getORB().create_any();
        testMessage.insert_long(20);
View Full Code Here

        assertEquals("this is 10", anyHolder.value.extract_string());

        testMessage = getORB().create_any();
        testMessage.insert_long(20);

        assertTrue(_mappingFilter.match(testMessage, anyHolder));
        assertEquals("this is 20", anyHolder.value.extract_string());
    }

    public static Test suite() throws Exception
    {
View Full Code Here

                getConfiguration(), filter_, defaultValue);

        AnyHolder anyHolder = new AnyHolder();

        // filter is empty. should not match
        assertTrue(!_mappingFilter.match(testPerson_, anyHolder));

        // add some filter data
        Any resultToSet = getORB().create_any();

        resultToSet.insert_string("this indicates success");
View Full Code Here

        assertEquals("$.first_name == 'firstname'", _info[0].constraint_expression.constraint_expr);
        assertEquals(resultToSet, _info[0].value);

        // this should match
        assertTrue(_mappingFilter.match(testPerson_, anyHolder));
        assertEquals(resultToSet, anyHolder.value);
    }

    public void testMatch2() throws Exception
    {
View Full Code Here

                getConfiguration(), filter_, defaultValue);

        AnyHolder anyHolder = new AnyHolder();

        // filter is empty. should not match
        assertTrue(!_mappingFilter.match(testPerson_, anyHolder));

        // add some filter data
        Any resultToSet = getORB().create_any();

        resultToSet.insert_string("this is 10");
View Full Code Here

        Any testMessage = getORB().create_any();
        testMessage.insert_long(10);

        // this should match
        assertTrue(_mappingFilter.match(testMessage, anyHolder));
        assertEquals("this is 10", anyHolder.value.extract_string());

        testMessage = getORB().create_any();
        testMessage.insert_long(20);
View Full Code Here

        assertEquals("this is 10", anyHolder.value.extract_string());

        testMessage = getORB().create_any();
        testMessage.insert_long(20);

        assertTrue(_mappingFilter.match(testMessage, anyHolder));
        assertEquals("this is 20", anyHolder.value.extract_string());
    }

    public static Test suite() throws Exception
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.