Skip to content

Add value alias for @ContextConfiguration's locations attribute [SPR-5713] #10383

@spring-projects-issues

Description

@spring-projects-issues

Sam Brannen opened SPR-5713 and commented

Status Quo: 'locations' attribute name is required even if you're only specifying the locations.

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations={"/applicationContext.xml"})
public class MyTest {

Goal: omit attribute name when only configuring locations.

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("/applicationContext.xml")
public class MyTest {


Affects: 2.5.6

Referenced from: commits 781da89, 7d4da00, 9daae23

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions