File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
opengrok-web/src/test/java/org/opengrok/web/api/v1/controller Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 26
26
import jakarta .ws .rs .client .Entity ;
27
27
import jakarta .ws .rs .core .Application ;
28
28
import jakarta .ws .rs .core .GenericType ;
29
+ import jakarta .ws .rs .core .Response ;
29
30
import org .glassfish .jersey .internal .inject .AbstractBinder ;
30
31
import org .glassfish .jersey .server .ResourceConfig ;
31
32
import org .junit .jupiter .api .AfterEach ;
@@ -480,6 +481,20 @@ void testGetRepos() throws Exception {
480
481
assertEquals (Collections .singletonList ("Mercurial" ), types );
481
482
}
482
483
484
+ @ Test
485
+ void testSetIndexed () throws Exception {
486
+ String project = "git" ;
487
+ addProject (project );
488
+ assertEquals (1 , env .getProjectList ().size ());
489
+
490
+ Response response = target ("projects" )
491
+ .path (project )
492
+ .path ("property/indexed" )
493
+ .request ()
494
+ .put (Entity .text (Boolean .TRUE .toString ()));
495
+ assertEquals (response .getStatus (), Response .Status .NO_CONTENT .getStatusCode ());
496
+ }
497
+
483
498
@ Test
484
499
void testSetGet () throws Exception {
485
500
assertTrue (env .isHandleHistoryOfRenamedFiles ());
You can’t perform that action at this time.
0 commit comments