Commit e4c2732c authored by Marion Goedel's avatar Marion Goedel
Browse files

Changed generation of paths so that they will also work under Windows.

parent ef5c6453
Pipeline #65861 failed with stages
in 40 minutes and 3 seconds
...@@ -53,8 +53,8 @@ public class TestTrajectoryReader { ...@@ -53,8 +53,8 @@ public class TestTrajectoryReader {
} }
private void resetTestStructure() throws URISyntaxException { private void resetTestStructure() throws URISyntaxException {
String dest = getClass().getResource("/data/VTestMultiRun").toURI().getPath(); String dest = new File(getClass().getResource("/data/VTestMultiRun").getFile()).toString();
String backup = getClass().getResource("/data/VTestMultiRun.bak").toURI().getPath(); String backup = new File(getClass().getResource("/data/VTestMultiRun.bak").getFile()).toString();
TestUtils.resetTestStructure(dest, backup); TestUtils.resetTestStructure(dest, backup);
} }
......
...@@ -27,8 +27,8 @@ public class JoltMigrationAssistantTest { ...@@ -27,8 +27,8 @@ public class JoltMigrationAssistantTest {
// clean up after test // clean up after test
@After @After
public void resetTestStructure() throws URISyntaxException { public void resetTestStructure() throws URISyntaxException {
String dest = getClass().getResource("/migration/testProject_v0.1").toURI().getPath(); String dest = new File(getClass().getResource("/migration/testProject_v0.1").getFile()).toString();
String backup = getClass().getResource("/migration/testProject_v0.1.bak").toURI().getPath(); String backup = new File(getClass().getResource("/migration/testProject_v0.1.bak").getFile()).toString();
TestUtils.resetTestStructure(dest, backup); TestUtils.resetTestStructure(dest, backup);
} }
...@@ -53,7 +53,7 @@ public class JoltMigrationAssistantTest { ...@@ -53,7 +53,7 @@ public class JoltMigrationAssistantTest {
// Test project transformation // Test project transformation
@Test @Test
public void TestTransformProject() throws URISyntaxException, IOException { public void TestTransformProject() throws URISyntaxException, IOException {
String projectPath = getClass().getResource("/migration/testProject_v0.1").toURI().getPath(); String projectPath = new File(getClass().getResource("/migration/testProject_v0.1").getFile()).toString();
JoltMigrationAssistant joltMigrationAssistant = new JoltMigrationAssistant(); JoltMigrationAssistant joltMigrationAssistant = new JoltMigrationAssistant();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment