예제 #1
0
 @Test
 public void searchExistingProjectWith2Words() throws ConnectionException {
   Collection<Project> results = dive.searchProjects("Xtext viewpoint");
   assertNotNull(results);
   assertFalse(results.isEmpty());
   assertEquals(1, results.size());
 }
예제 #2
0
 @Test
 public void getProject() throws ConnectionException {
   Project project = dive.getProject("torvalds", "linux");
   assertNotNull(project);
   assertTrue(project.getForks() > 0);
   assertTrue(project.getWatchers() > 0);
 }
예제 #3
0
 @Test
 public void searchNonExistingProject() throws ConnectionException {
   Collection<Project> results = dive.searchProjects("zzzzaaaawwwwwttrzejihkjssjnjk");
   assertNotNull(results);
   assertTrue(results.isEmpty());
 }
예제 #4
0
 @Test
 public void searchExistingProject() throws ConnectionException {
   Collection<Project> results = dive.searchProjects("play");
   assertNotNull(results);
   assertFalse(results.isEmpty());
 }