jtanistra / 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 8 years ago

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
Seems like fixed by 
https://github.com/spockframework/spock/commit/718bf4261d3abaa6217ee059639c3aae2
f8a5803.

Original comment by zefif...@gmail.com on 31 May 2015 at 7:31