This is an automated email from the ASF dual-hosted git repository.
ayegorov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/master by this push:
new 4976960b55 convert testcase to junit 4 (#3371)
4976960b55 is described below
commit 4976960b557fec2841ce1785e8cafa3b1e0d4e09
Author: StevenLuMT <[email protected]>
AuthorDate: Wed Jun 29 01:58:39 2022 +0800
convert testcase to junit 4 (#3371)
* Basic function: directories to store index files
* add test case for indexDirs fix
* checkstyle fixed
* use junit 5 api to run testcase
* convert this testcase to junit 4
Co-authored-by: lushiji <[email protected]>
---
.../bookie/storage/ldb/DbLedgerStorageIndexDirTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorageIndexDirTest.java
b/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorageIndexDirTest.java
index 77c4f038b2..1f8e64c4cb 100644
---
a/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorageIndexDirTest.java
+++
b/bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/storage/ldb/DbLedgerStorageIndexDirTest.java
@@ -37,9 +37,9 @@ import org.apache.bookkeeper.bookie.TestBookieImpl;
import org.apache.bookkeeper.conf.ServerConfiguration;
import org.apache.bookkeeper.conf.TestBKConfiguration;
import org.apache.bookkeeper.proto.BookieProtocol;
-import org.junit.jupiter.api.AfterEach;
-import org.junit.jupiter.api.BeforeEach;
-import org.junit.jupiter.api.Test;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
/**
* Unit test for {@link DbLedgerStorage}.
@@ -52,7 +52,7 @@ public class DbLedgerStorageIndexDirTest {
private static final String LOCATION_INDEX_SUB_PATH = "locations";
private static final String METADATA_INDEX_SUB_PATH = "ledgers";
- @BeforeEach
+ @Before
public void setup() throws Exception {
tmpLedgerDir = File.createTempFile("ledgerDir", ".dir");
tmpLedgerDir.delete();
@@ -79,7 +79,7 @@ public class DbLedgerStorageIndexDirTest {
storage = (DbLedgerStorage) bookie.getLedgerStorage();
}
- @AfterEach
+ @After
public void teardown() throws Exception {
storage.shutdown();
tmpLedgerDir.delete();