File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
opengrok-web/src/test/java/org/opengrok/web/api/v1/controller Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ public void testList() {
438
438
}
439
439
440
440
@ Test
441
- public void testGetRepos () throws Exception {
441
+ public void testGetReposForNonExistentProject () throws Exception {
442
442
GenericType <List <String >> type = new GenericType <List <String >>() {};
443
443
444
444
// Try to get repos for non-existent project first.
@@ -449,6 +449,11 @@ public void testGetRepos() throws Exception {
449
449
.get (type );
450
450
451
451
assertTrue (repos .isEmpty ());
452
+ }
453
+
454
+ @ Test
455
+ public void testGetRepos () throws Exception {
456
+ GenericType <List <String >> type = new GenericType <List <String >>() {};
452
457
453
458
// Create subrepository.
454
459
File mercurialRoot = new File (repository .getSourceRoot () + File .separator + "mercurial" );
@@ -459,13 +464,13 @@ public void testGetRepos() throws Exception {
459
464
addProject ("mercurial" );
460
465
461
466
// Get repositories of the project.
462
- repos = target ("projects" )
467
+ List < String > repos = target ("projects" )
463
468
.path ("mercurial" )
464
469
.path ("repositories" )
465
470
.request ()
466
471
.get (type );
467
472
468
- // Perform cleanup of the subrepository in order not to interefere
473
+ // Perform cleanup of the subrepository in order not to interfere
469
474
// with other tests.
470
475
removeRecursive (new File (mercurialRoot .getAbsolutePath () +
471
476
File .separator + "closed" ).toPath ());
You can’t perform that action at this time.
0 commit comments