use of org.xwiki.observation.event.filter.RegexEventFilter in project xwiki-platform by xwiki.
the class DocumentEventTest method testMatchesWithRegexFilter.
@Test
public void testMatchesWithRegexFilter() {
DocumentSaveEvent event = new DocumentSaveEvent(new RegexEventFilter(".*Doc.*"));
Assert.assertTrue(event.matches(new DocumentSaveEvent("some.Document")));
Assert.assertFalse(event.matches(new DocumentSaveEvent("some.document")));
}
Aggregations