File tree Expand file tree Collapse file tree
SystaRESTServer/src/de/freaklamarsch/systarest/tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments