This is an automated email from the ASF dual-hosted git repository.
afs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
The following commit(s) were added to refs/heads/main by this push:
new 07e0b7b8ac GH-4065: Reset TDB1 internal state before running clean
start tests
07e0b7b8ac is described below
commit 07e0b7b8acfad1005c649776fd957d03f24aa839
Author: Andy Seaborne <[email protected]>
AuthorDate: Sun Jul 19 22:39:12 2026 +0100
GH-4065: Reset TDB1 internal state before running clean start tests
---
.../test/java/org/apache/jena/tdb1/TestTDB1Factory.java | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/jena-tdb1/src/test/java/org/apache/jena/tdb1/TestTDB1Factory.java
b/jena-tdb1/src/test/java/org/apache/jena/tdb1/TestTDB1Factory.java
index 408ff5dfb0..f3a4e4a557 100644
--- a/jena-tdb1/src/test/java/org/apache/jena/tdb1/TestTDB1Factory.java
+++ b/jena-tdb1/src/test/java/org/apache/jena/tdb1/TestTDB1Factory.java
@@ -41,18 +41,20 @@ import org.junit.jupiter.api.Test;
@SuppressWarnings("removal")
public class TestTDB1Factory
{
- String DIR = ConfigTest.getCleanDir() ;
+ private String DIR;
- static Quad quad1 = SSE.parseQuad("(_ <s> <p> 1)") ;
- static Quad quad2 = SSE.parseQuad("(_ <s> <p> 1)") ;
+ static final Quad quad1 = SSE.parseQuad("(_ <s> <p> 1)") ;
+ static final Quad quad2 = SSE.parseQuad("(_ <s> <p> 1)") ;
@BeforeEach
public void before() {
- TDBInternal.reset();
+ DIR = ConfigTest.getCleanDir()+"/TestTDB1Factory";
FileOps.clearDirectory(DIR);
+ TDBInternal.reset();
}
- @AfterEach public void after() {
+ @AfterEach
+ public void after() {
TDBInternal.reset();
FileOps.clearDirectory(DIR);
}
@@ -111,7 +113,7 @@ public class TestTDB1Factory
@Test public void testTDBFresh01() {
boolean b = TDB1Factory.inUseLocation(DIR) ;
- assertFalse(b, "Expect false before any creation attempted") ;
+ assertFalse(b, "Expected false before any creation attempted") ;
}
@Test public void testTDBFresh02() {