假设我有一个父测试类,像这样:在Spring中,ContextConfiguration(...)从它的父@ContextConfiguration继承吗?
@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = { MyCustomTestConfig.class })
public class MyParentTestclass {
然后,我有一个子类,我想添加Spring 3.2.3 name annotation attribute。
@ContextConfiguration(name=MyName)
public class MyChildTestClass extends MyParentTestClass {
我还想从父级获取所有上下文配置 - 但不知道是否会通过。
我的问题是:在春天做了ContextConfiguration(...)从其父继承@ContextConfiguration?