assertTrue(!filter.accept(new DefaultMuleMessage("blah.x.blah", muleContext)));
}
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)));
}