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 28
28
import jakarta .ws .rs .core .GenericType ;
29
29
import jakarta .ws .rs .core .Response ;
30
30
import 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 ;
31
37
import org .junit .jupiter .api .AfterAll ;
32
38
import org .junit .jupiter .api .BeforeAll ;
33
39
import org .junit .jupiter .api .BeforeEach ;
@@ -93,8 +99,13 @@ private static class TermIncrementData {
93
99
private static TestRepository repository ;
94
100
95
101
@ 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 ();
98
109
}
99
110
100
111
@ BeforeAll
You can’t perform that action at this time.
0 commit comments