Starting from 2021-07-01, all LRZ GitLab users will be required to explicitly accept the GitLab Terms of Service. Please see the detailed information at https://doku.lrz.de/display/PUBLIC/GitLab and make sure that your projects conform to the requirements.

Commit 73f79c0f authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "TestOutputFileAfterMultipleRuns.java", fixed exception because of path problem.

parent 9e1a712b
......@@ -2,6 +2,7 @@ package org.vadere.simulator.dataprocessing;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
......@@ -23,7 +24,7 @@ public class TestOutputFileAfterMultipleRuns {
public void setup() {
try {
String json = IOUtils
.readTextFile(getClass().getResource("/data/basic_1_chicken_osm1.scenario").getPath());
.readTextFile(new File(getClass().getResource("/data/basic_1_chicken_osm1.scenario").toURI()).getAbsolutePath());
testScenario = JsonConverter.deserializeScenarioRunManager(json);
MainModelBuilder modelBuilder = new MainModelBuilder(testScenario.getScenarioStore());
modelBuilder.createModelAndRandom();
......
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