diff --git a/test/net/java/sip/communicator/slick/msghistory/TestMsgHistoryService.java b/test/net/java/sip/communicator/slick/msghistory/TestMsgHistoryService.java index 134c6d684..ed07fda7b 100644 --- a/test/net/java/sip/communicator/slick/msghistory/TestMsgHistoryService.java +++ b/test/net/java/sip/communicator/slick/msghistory/TestMsgHistoryService.java @@ -231,6 +231,21 @@ public void readRecords() assertTrue("Messages too few - findByKeyword", msgs.size() >= 5); + /** + * Will test case sernsitive and insensitive search + */ + rs = msgHistoryService.findByKeyword(testMetaContact, "Test", false); + + assertTrue("Nothing found findByKeyword caseINsensitive search", !rs.isEmpty()); + + msgs = getMessages(rs); + + assertTrue("Messages too few - findByKeyword", msgs.size() >= 5); + + rs = msgHistoryService.findByKeyword(testMetaContact, "Test", true); + + assertFalse("Something found by findByKeyword casesensitive search", !rs.isEmpty()); + /** * This must match also many messages, as tests are run many times * but the minimum is 3