Skip to content

Commit

Permalink
Ensure that Jersey's filter has a servlet at the end of its chain
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkinsona committed Feb 26, 2021
1 parent cb600f1 commit 12d3b15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@
*
* @author Madhura Bhave
*/
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
properties = { "management.server.port=0", "debug=true" })
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, properties = "management.server.port=0")
@Import(ResourceConfigConfiguration.class)
class AbstractJerseyManagementPortTests {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*
* @author Andy Wilkinson
*/
@TestPropertySource(properties = "spring.jersey.type=filter")
@TestPropertySource(properties = { "spring.jersey.type=filter", "server.servlet.register-default-servlet=true" })
class JerseyFilterApplicationTests extends AbstractJerseyApplicationTests {

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @author Andy Wilkinson
*/
@TestPropertySource(properties = "spring.jersey.type=filter")
@TestPropertySource(properties = { "spring.jersey.type=filter", "server.servlet.register-default-servlet=true" })
public class JerseyFilterManagementPortTests extends AbstractJerseyManagementPortTests {

}

2 comments on commit 12d3b15

@dreis2211
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wilkinsona What a timing - I was just about to send a PR. Thanks for fixing this.

@wilkinsona
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for breaking it in the first place!

Please sign in to comment.