Skip to content

Deprecate support for custom, default ContextLoader class name in the TestContext framework [SPR-11682] #16305

Closed

Description

@spring-projects-issues

Sam Brannen opened SPR-11682 and commented

Overview

#14588 introduces a new bootstrap strategy for the TestContext framework. Thus as of Spring Framework 4.1, a TestContextBootstrapper will assume the responsibility for determining what ContextLoader to use as the default. Consequently, previous support for supplying the class name for a custom, default ContextLoader will no longer be applicable.

Deliverables

Officially deprecate support for custom, default ContextLoader class names in the 4.0.x line for the following:

  1. The TestContextManager(Class, String) constructor
  2. The getDefaultContextLoaderClassName(Class) method in SpringJUnit4ClassRunner

Affects: 4.0 GA

Issue Links:

Activity

  1. spring-projects-issues commented on Apr 10, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Completed as described in the comments for GitHub commit d5ce30f:

    Deprecate custom/default CtxLdr class name in TCF

    Once the new bootstrap strategy for the TestContext framework (TCF) is
    introduced in Spring Framework 4.1, a TestContextBootstrapper will
    assume full responsibility for determining what ContextLoader to use as
    the default. Consequently, the previous support for supplying the class
    name for a custom, default ContextLoader will no longer be applicable.

    This commit therefore officially deprecates support for custom, default
    ContextLoader class names via the following mechanisms:

    • The TestContextManager(Class, String) constructor

    • The getDefaultContextLoaderClassName(Class) method in
      SpringJUnit4ClassRunner

  2. added
    in: test
    type: task
    on Jan 11, 2019
  3. added this to the 4.0.4 milestone 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