Skip to content

Commit

Permalink
Fix Jena initialisation issues
Browse files Browse the repository at this point in the history
Fixed a bug with Jena initialisation happening out of order triggered by
one of the test cases
  • Loading branch information
rvesse committed Jul 19, 2024
1 parent f1d07eb commit ee893ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import io.telicent.smart.cache.sources.memory.SimpleEvent;
import io.telicent.smart.cache.sources.offsets.file.AbstractJacksonOffsetStore;
import org.apache.commons.lang3.StringUtils;
import org.apache.jena.sys.JenaSystem;
import org.apache.kafka.common.serialization.BytesDeserializer;
import org.apache.kafka.common.serialization.StringDeserializer;
import org.apache.kafka.common.serialization.StringSerializer;
Expand All @@ -60,6 +61,11 @@
import static io.telicent.smart.cache.cli.commands.debug.TestLogUtil.enableSpecificLogging;

public class AbstractDockerDebugCliTests extends AbstractCommandTests {

static {
JenaSystem.init();
}

protected final KafkaTestCluster kafka = new KafkaTestCluster();

public static void verifyEvents(String format) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public void givenInputsAndCaptureDirectoryAndCaptureFormat_whenRunningCaptureCom
verifyCapturedEvents(captureDir, PlainTextFormat.NAME, "Event %,d");
}

@Test(retryAnalyzer = FlakyKafkaTest.class)
@Test//(retryAnalyzer = FlakyKafkaTest.class)
public void givenInputsAndCaptureDirectoryAndRdfFormat_whenRunningCaptureCommand_thenEventsAreCapturedInRdfFormat() throws IOException {
// Given
generateKafkaEvents("<http://subject> <http://predicate> \"%d\" .");
Expand Down

0 comments on commit ee893ac

Please # to comment.