示例#1
0
 private void doFindTest(Book book, String test, int expected) throws BookException {
   Key key = book.find(test);
   System.out.println(test + " found " + key.getCardinality() + " occurences: " + key.getName());
   assertEquals(test + " find count wrong", expected, key.getCardinality());
 }