Skip to content

Provide test ContextLoader for @ContextConfiguration that creates a WebApplicationContext [SPR-5399] #10072

Closed
@spring-projects-issues

Description

@spring-projects-issues

Dave Syer opened SPR-5399 and commented

Provide test ContextLoader for @ContextConfiguration that creates a WebApplicationContext. I would like to add a MockServletContext to my test configuration and then load a DispatcherServlet context to check that it initializes OK, at the very least. I am prevented from doing thiswith a normal generic ContextLoader by #10071, but it strikes me that anyway a loader should be provided to make this a less onerous task to start with.


Affects: 2.5.6

Issue Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions