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 https://gitlab.lrz.de/profile/account). Please change your username if necessary. For more information see the section "Public projects / Öffentliche Projekte" at https://doku.lrz.de/display/PUBLIC/GitLab . 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.io.IOException;
import java.net.URISyntaxException;
import java.nio.file.Files;
import java.nio.file.Paths;
......@@ -13,11 +14,12 @@ public class SetLogNameCommandTest {
@Test
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();
System.out.println(path);
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) {
fail(e.getMessage());
}
}
......
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