File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
src/test/java/com/arangodb/springframework Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 2020
2121package com .arangodb .springframework ;
2222
23- import com .arangodb .springframework .core .ArangoOperations ;
2423import org .junit .AfterClass ;
2524import org .junit .Before ;
2625import org .junit .runner .RunWith ;
2726import org .springframework .beans .factory .annotation .Autowired ;
2827import org .springframework .test .context .ContextConfiguration ;
2928import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
3029
31- import javax . annotation . PostConstruct ;
30+ import com . arangodb . springframework . core . ArangoOperations ;
3231
3332/**
3433 * @author Mark Vollmary
3534 */
3635@ RunWith (SpringJUnit4ClassRunner .class )
37- @ ContextConfiguration (classes = {ArangoTestConfiguration .class })
36+ @ ContextConfiguration (classes = { ArangoTestConfiguration .class })
3837public abstract class AbstractArangoTest {
3938
4039 private static volatile ArangoOperations staticTemplate ;
@@ -53,17 +52,12 @@ public void before() {
5352 for (final Class <?> collection : collections ) {
5453 template .collection (collection ).truncate ();
5554 }
55+ AbstractArangoTest .staticTemplate = template ;
5656 }
5757
5858 @ AfterClass
5959 public static void afterClass () {
6060 staticTemplate .dropDatabase ();
6161 }
6262
63-
64- @ PostConstruct
65- private void postConstruct () {
66- staticTemplate = template ;
67- }
68-
6963}
You can’t perform that action at this time.
0 commit comments