Since spring 4.0 @ContextConfiguration can be used as meta-annotation to create
custom annotation which prevent repeating of configuration settings.
for example:
@ContextConfiguration(...)
@Profile("test")
public @interface MyTestContext {..}'
and on test class, simply:
@MyTestContext
public class MyTest {
...
}
This works nicely in pure junit, but not in spock.
Original issue reported on code.google.com by wojciech...@gmail.com on 16 Feb 2014 at 4:28
Original issue reported on code.google.com by
wojciech...@gmail.com
on 16 Feb 2014 at 4:28