In Spring does a ContextConfiguration(...) inherit from its parent @ContextConfiguration?

Viewed 3677

Suppose I have a parent test class like so:

@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = { MyCustomTestConfig.class })
public class MyParentTestclass {

Then I have a child class where I want to add the Spring 3.2.3 name annotation attribute.

@ContextConfiguration(name=MyName)
public class MyChildTestClass extends MyParentTestClass {

I still want to get all the context configuration from the parent - but am not sure if it will come through.

My question is: In Spring does a ContextConfiguration(...) inherit from its parent @ContextConfiguration?

1 Answers
Related