You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juneau.apache.org by "James Bognar (Jira)" <ji...@apache.org> on 2022/06/24 17:20:00 UTC
[jira] [Resolved] (JUNEAU-241) RestContext should provide ability to be initialized without calling Servlet.init()
[ https://issues.apache.org/jira/browse/JUNEAU-241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James Bognar resolved JUNEAU-241.
---------------------------------
Resolution: Fixed
This no longer applies to the new Spring Boot API
> RestContext should provide ability to be initialized without calling Servlet.init()
> -----------------------------------------------------------------------------------
>
> Key: JUNEAU-241
> URL: https://issues.apache.org/jira/browse/JUNEAU-241
> Project: Juneau
> Issue Type: Improvement
> Components: Code
> Affects Versions: 8.1.3
> Reporter: James Bognar
> Priority: Major
>
> It appears the Spring Boot test framework will not automatically call Servlet.init() on the top-level resource on beans injected into tests. This causes the SpringBootResourceResolver not being used to resolve child resources.
> Figure out a way to get this to work in Spring Boot tests without having to rely on servlet initialization.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)