Notice: If you are member of any public project or group, please make sure that your GitLab username is not the same as the LRZ identifier/Kennung (see Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at . Thank you!

Commit 0195ad51 authored by BZoennchen's avatar BZoennchen

replace external scenario file by test sceanrio file.

parent 4734dfba
Pipeline #129058 failed with stages
in 58 minutes and 40 seconds
......@@ -4,6 +4,7 @@ import org.junit.Test;
import org.vadere.simulator.entrypoints.cmd.VadereConsole;
import java.nio.file.Files;
import java.nio.file.Paths;
......@@ -13,11 +14,12 @@ public class SetLogNameCommandTest {
public void testSetLogNameCommand(){
String path = "test.log";
VadereConsole.main(new String[] {"--logname", path, "scenario-run", "-f", "../VadereModelTests/TestOSM/scenarios/basic_2_density_discrete_ca.scenario"});
try {
String path = Paths.get(getClass().getResource("/org/vadere/simulator/entrypoints/test.scenario").toURI()).toString();
VadereConsole.main(new String[] {"--logname", path, "scenario-run", "-f", path});
assertTrue(Files.lines(Paths.get(path)).count() > 0);
} catch (IOException e) {
} catch (IOException | URISyntaxException e) {
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