When testing with spring and @ContextConfiguration Is there an option to exclude some of the base class contexts? for example
@ContextConfiguration(locations = {"context1.xml", "context2.xml"})
public class Base{
and extending class
public class someClass extends Base{
now I want someClass to use context1.xml but NOT context2.xml. is there a way to exclude it? the issue is: I have a base class for all my tests (300 tests). I want all of them to use context1 which is a mock context that overrides the original one. Only one class should use the original context in order to test it (if the Base will not have it in its locations{} it will use the original).