bgarrels / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

@ContextConfiguration should be treated as meta-annotation #349

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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