Skip to content

Commit 09f419e

Browse files
remove PostConstruct (#201)
Co-authored-by: Paulo Ferreira <paulo.ferreira25@gmail.com>
1 parent f78d96c commit 09f419e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/test/java/com/arangodb/springframework/AbstractArangoTest.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@
2020

2121
package com.arangodb.springframework;
2222

23-
import com.arangodb.springframework.core.ArangoOperations;
2423
import org.junit.AfterClass;
2524
import org.junit.Before;
2625
import org.junit.runner.RunWith;
2726
import org.springframework.beans.factory.annotation.Autowired;
2827
import org.springframework.test.context.ContextConfiguration;
2928
import 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 })
3837
public 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
}

0 commit comments

Comments
 (0)