From ab35208a530c6047e9c0369ff9f77c6fbca16c8f Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Fri, 19 Apr 2024 13:34:59 +0200 Subject: [PATCH] fix(test): use relative path --- README.md | 2 ++ src/test/kotlin/TestGreeting.kt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01783c8..75214e2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # JVM Runner +[![Test Suite](https://github.com/rdf-connect/jvm-runner/actions/workflows/test.yml/badge.svg)](https://github.com/rdf-connect/jvm-runner/actions/workflows/test.yml) [![ktlint](https://img.shields.io/badge/ktlint%20code--style-%E2%9D%A4-FF4081)](https://pinterest.github.io/ktlint/) + A proof-of-concept implementation of a Kotlin-based JVM runner. diff --git a/src/test/kotlin/TestGreeting.kt b/src/test/kotlin/TestGreeting.kt index fb88c4f..fbf98df 100644 --- a/src/test/kotlin/TestGreeting.kt +++ b/src/test/kotlin/TestGreeting.kt @@ -22,7 +22,8 @@ class TestGreeting { @Test fun testGreeting() { - val config = Configuration("/Users/jens/Developer/technology.idlab.jvm-runner/src/test/resources/Greeting.ttl") + val path = TestGreeting::class.java.getResource("/Greeting.ttl")?.path + val config = Configuration(path.toString()) config.executeSync() assertTrue(outputStreamCaptor.toString().contains("Hello, JVM Runner!")) }