Exemplo n.º 1
0
 @Test
 public void searchExistingProjectWith2Words() throws ConnectionException {
   Collection<Project> results = dive.searchProjects("Xtext viewpoint");
   assertNotNull(results);
   assertFalse(results.isEmpty());
   assertEquals(1, results.size());
 }
Exemplo n.º 2
0
 @Test
 public void searchNonExistingProject() throws ConnectionException {
   Collection<Project> results = dive.searchProjects("zzzzaaaawwwwwttrzejihkjssjnjk");
   assertNotNull(results);
   assertTrue(results.isEmpty());
 }
Exemplo n.º 3
0
 @Test
 public void searchExistingProject() throws ConnectionException {
   Collection<Project> results = dive.searchProjects("play");
   assertNotNull(results);
   assertFalse(results.isEmpty());
 }