Skip to content

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

Closed

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:

Activity

  1. spring-projects-issues commented on Jan 18, 2009

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    See link to duplicate.

  2. added
    in: test
    type: enhancement
    status: duplicate
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: teststatus: duplicatetype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions