@Test public void testGetItemsForDomain() { List<Item> items = dict.getItemsForDomain("íþróttir_*"); assertTrue(items.size() > 0); // for (Item it : items) // System.out.println(it); // // System.out.println("nr of items: " + items.size()); }
@Test(expected = IllegalArgumentException.class) public void testGetItemsForDomainNull() { List<Item> items = dict.getItemsForDomain(null); }
@Test public void testGetItemsForDomainEmpty() { List<Item> items = dict.getItemsForDomain(""); assertTrue(items.size() == 0); }