@Test public void testSearchCaseSensitiveEmpty() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 10, true); assertEquals(result.size(), 0); }
@Test public void testSearchCaseUnsensitive() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 10, false); assertEquals(result.size(), 2); }
@Test public void testSearchByAlias() throws Exception { Collection<Repository> result = searchService.searchByAlias("Item", 10, true); assertEquals(result.size(), 2); }
@Test public void testSearchCaseSensitiveEmpty() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 10, true); assertEquals(result.size(), 0); }
@Test public void testSearchMaxItems() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 1, false); assertEquals(result.size(), 1); } }
@Test public void testSearchCaseUnsensitive() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 10, false); assertEquals(result.size(), 2); }
@Test public void testSearchByAlias() throws Exception { Collection<Repository> result = searchService.searchByAlias("Item", 10, true); assertEquals(result.size(), 2); }
@Test public void testSearchMaxItems() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 1, false); assertEquals(result.size(), 1); } }
@Test public void testSearchCaseSensitiveEmpty() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 10, true); assertEquals(result.size(), 0); }
@Test public void testSearchCaseUnsensitive() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 10, false); assertEquals(result.size(), 2); }
@Test public void testSearchMaxItems() throws Exception { Collection<Repository> result = searchService.searchByAlias("item", 1, false); assertEquals(result.size(), 1); } }
@Test public void testSearchByAlias() throws Exception { Collection<Repository> result = searchService.searchByAlias("Item", 10, true); assertEquals(result.size(), 2); }