Open
Description
I have an integration test written in Concordion which needs Spring, so it has the junit spring class and method rules. In this test I need to initialize the database before running my specification but when I try to use a bean inside the @BeforeSpecification method, it is not initialized yet.
It does work when I make the initialization @BeforeExample, but then I can only use
1 example or the database will be initialized multiple times.
I think junit class rules should be ran before the @BeforeSpecification method.
These are the spring rules I am using:
@ClassRule
public static final SpringClassRule SPRING_CLASS_RULE = new SpringClassRule();
@Rule
public final SpringMethodRule springMethodRule = new SpringMethodRule();
Metadata
Metadata
Assignees
Labels
No labels