Skip to content

Fix package cycles in spring-test [SPR-9924] #14557

Closed

Description

@spring-projects-issues

Chris Beams opened SPR-9924 and commented

Sam Brannen, see attached screenshots from Structure 101 - it looks like a couple package cycles crept in during recent changes to spring-test. /cc Rossen Stoyanchev


Affects: 3.2 RC1

Attachments:

Issue Links:

Referenced from: commits 461d99a, 90c5f22, a281bdb

Activity

  1. spring-projects-issues commented on Oct 27, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Completed as described in the comments for GitHub commit 90c5f226b6:

    Fix package cycles in spring-test

    Code introduced in conjunction with #9917 introduced package cycles
    between the ~.test.context.web and ~.test.context.support packages. This
    was caused by the fact that ServletTestExecutionListener extended
    AbstractTestExecutionListener.

    To address this, ServletTestExecutionListener now implements
    TestExecutionListener directly.

  2. spring-projects-issues commented on Oct 27, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    Hi Sam,

    Some tangles have indeed been resolved, but it looks like one remains. See the screenshot, thanks.

  3. spring-projects-issues commented on Oct 27, 2012

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Completed as described in the comments for GitHub commit 461d99af29:

    Fix package cycles in spring-test

    Code introduced in conjunction with #9917 introduced package cycles
    between the ~.test.context and ~.test.context.web packages. This was
    caused by the fact that ContextLoaderUtils worked directly with the
    @WebAppConfiguration and WebMergedContextConfiguration types.

    To address this, the following methods have been introduced in
    ContextLoaderUtils. These methods use reflection to circumvent hard
    dependencies on the @WebAppConfiguration and
    WebMergedContextConfiguration types.

    • loadWebAppConfigurationClass()
    • buildWebMergedContextConfiguration()
  4. added
    in: test
    type: task
    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: testtype: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions