Added tests for case in/sensitive search

cusax-fix
Damian Minkov 20 years ago
parent 87500a54ac
commit 869b5bcdb9

@ -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

Loading…
Cancel
Save