Skip to content

Commit 228a4d9

Browse files
Update SystaRESTAPITest.java
1 parent f57f26f commit 228a4d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SystaRESTServer/src/de/freaklamarsch/systarest/tests/SystaRESTAPITest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class SystaRESTAPITest extends JerseyTest {
9898

9999
// do not name this setup()
100100
@BeforeAll // fix incompatibility with JUnit5
101-
public static void initializeTestData() { // Made static as @BeforeAll for non-PER_CLASS lifecycle requires it
101+
public void initializeTestData() {
102102
String testDir = SystaRESTAPITest.class.getResource(".").getPath();
103103
System.out.println(testDir);
104104
//String testDir = this.getResource(".").getPath();
@@ -114,7 +114,7 @@ public static void initializeTestData() { // Made static as @BeforeAll for non-P
114114
testDir + "data06_09_01.txt", // IDX_DATA06_09_01
115115
testDir + "data07_09_02.txt", // IDX_DATA07_09_02
116116
testDir + "data08_09_03.txt" // IDX_DATA08_09_03
117-
}; // However, this class uses PER_CLASS, so instance method @BeforeAll is also fine.
117+
};
118118
// Let's stick to static as per instruction for data init.
119119
for (String filePath : TEST_DATA_FILES) {
120120
ByteBuffer buffer = ByteBuffer.allocate(1048); // Default size

0 commit comments

Comments
 (0)