Specify Custom Application Context
We are migrating some of our data services from Jersey 1.x using jersey-spring to Jersey 2.x using jersey-spring3. We have a few test classes that inherit from JerseyTest. Some of these classes use custom applicationContext.xml files that are not specified in the web.xml file. In Jersey 1.x the test classes that extended JerseyTest could call the super constructor with a WebappDescriptor.Builder to which a context parameter could be passed to set or override the application context path. E.g. public MyTestClassThatExtendsJerseyTest() { super(new WebAppDescriptor.Builder("com.helloworld")