6364656667686970717273
// no matches should be found assertFalse(matched); // message should not have changed assertEquals(new Message().toXML(), message.toXML()); } public void testFilterMessageSubject() { // filter on the word fox filter.setPatterns("fox");
190191192193194195196197198199200
String expectedXML = chatXML.replaceAll("fox", filter.getMask()); // do filter boolean matched = filter.filter(m); assertTrue(matched); assertEquals(expectedXML, expectedXML, m.toXML()); } public void testFilterAvailablePresence() throws Exception {