Skip to content

Commit

Permalink
test suite update
Browse files Browse the repository at this point in the history
  • Loading branch information
lenaRB committed Sep 29, 2023
1 parent 7b5d5b2 commit b04629a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/specDocExamples/TestSuite.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ void testTraficLight () throws InterruptedException, IOException{
}
}

@DisplayName("Traffic lights use-case test")
@Test
void testTraficLight () throws InterruptedException, IOException{
String filePath = "resources/crml_tutorial/pumping_system/";

// try compiling crml to modelica
try {

crml.translator.Main.parse_file(filePath, "Spec.crml", parameters.Values.generatedTestRepository+"/traffic", true, true);

} catch (Exception e) {
fail("Unable to translate " + "Traffic light example" + "to Modelica :\n" + e.getMessage());
}
}

@ParameterizedTest
@MethodSource("fileNameSource")
void test(final String fileName) throws InterruptedException, IOException {
Expand Down

0 comments on commit b04629a

Please sign in to comment.