Examples of NotFilter


Examples of org.mule.routing.filters.logic.NotFilter

    }

    @Test
    public void testNotFilter()
    {
        NotFilter notFilter = new NotFilter();
        assertNull(notFilter.getFilter());
        assertFalse(notFilter.accept(new DefaultMuleMessage("foo", muleContext)));
        assertFalse(notFilter.accept(new DefaultMuleMessage(null, muleContext)));

        WildcardFilter filter = new WildcardFilter("blah.blah.*");
        notFilter = new NotFilter(filter);
        assertNotNull(notFilter.getFilter());

        assertTrue(filter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));
        assertTrue(!notFilter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));

        notFilter = new NotFilter();
        notFilter.setFilter(filter);
        assertTrue(filter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));
        assertTrue(!notFilter.accept(new DefaultMuleMessage("blah.blah.blah", muleContext)));
    }
View Full Code Here

Examples of org.mule.routing.filters.logic.NotFilter

                addEventHandlers(xpathBuilder, (Filter) itr.next());
            }
        }
        else if (filter instanceof NotFilter)
        {
            NotFilter f = (NotFilter) filter;

            addEventHandlers(xpathBuilder, f.getFilter());
        }
        else
        {
            logger.warn("Filter type " + filter.getClass().toString()
                           + " is not recognized by the SXC router. If it contains child "
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.