File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
opengrok-web/src/test/java/org/opengrok/web/api/v1/controller Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 2828import jakarta .ws .rs .core .GenericType ;
2929import jakarta .ws .rs .core .Response ;
3030import org .apache .lucene .index .Term ;
31+ import org .glassfish .jersey .servlet .ServletContainer ;
32+ import org .glassfish .jersey .test .DeploymentContext ;
33+ import org .glassfish .jersey .test .ServletDeploymentContext ;
34+ import org .glassfish .jersey .test .grizzly .GrizzlyWebTestContainerFactory ;
35+ import org .glassfish .jersey .test .spi .TestContainerException ;
36+ import org .glassfish .jersey .test .spi .TestContainerFactory ;
3137import org .junit .jupiter .api .AfterAll ;
3238import org .junit .jupiter .api .BeforeAll ;
3339import org .junit .jupiter .api .BeforeEach ;
@@ -93,8 +99,13 @@ private static class TermIncrementData {
9399 private static TestRepository repository ;
94100
95101 @ Override
96- protected Application configure () {
97- return new RestApp ();
102+ protected DeploymentContext configureDeployment () {
103+ return ServletDeploymentContext .forServlet (new ServletContainer (new RestApp ())).build ();
104+ }
105+
106+ @ Override
107+ protected TestContainerFactory getTestContainerFactory () throws TestContainerException {
108+ return new GrizzlyWebTestContainerFactory ();
98109 }
99110
100111 @ BeforeAll
You can’t perform that action at this time.
0 commit comments