From 6f4aed8bb745ecc2e6671db2ddf8445be6b5f0c6 Mon Sep 17 00:00:00 2001 From: tschlenther Date: Tue, 21 May 2024 15:51:05 +0200 Subject: [PATCH] try setting up a test for OpenBerlinDrtScenario --- .../run/RunOpenBerlinDrtScenarioTest.java | 29 ++++ .../input/drt/berlin-v6.1.drt-test-config.xml | 135 ++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 src/test/java/org/matsim/run/RunOpenBerlinDrtScenarioTest.java create mode 100644 test/input/drt/berlin-v6.1.drt-test-config.xml diff --git a/src/test/java/org/matsim/run/RunOpenBerlinDrtScenarioTest.java b/src/test/java/org/matsim/run/RunOpenBerlinDrtScenarioTest.java new file mode 100644 index 000000000..43dadede1 --- /dev/null +++ b/src/test/java/org/matsim/run/RunOpenBerlinDrtScenarioTest.java @@ -0,0 +1,29 @@ +package org.matsim.run; + + +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.matsim.application.MATSimApplication; +import org.matsim.testcases.MatsimTestUtils; + +import static org.assertj.core.api.Assertions.assertThat; + +public class RunOpenBerlinScenarioTest { + + @RegisterExtension + public MatsimTestUtils utils = new MatsimTestUtils(); + + @Test + public void pct1() { + + int code = MATSimApplication.execute(OpenBerlinScenario.class, + "--1pct", + "--output", utils.getOutputDirectory(), + "--iterations", "2", + "--config:simwrapper.defaultDashboards", "disabled" + ); + + assertThat(code).isEqualTo(0); + + } +} diff --git a/test/input/drt/berlin-v6.1.drt-test-config.xml b/test/input/drt/berlin-v6.1.drt-test-config.xml new file mode 100644 index 000000000..972c7b707 --- /dev/null +++ b/test/input/drt/berlin-v6.1.drt-test-config.xml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +