forked from lenaRB/crml-compiler
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathUseCaseTests.java
More file actions
40 lines (28 loc) · 1.02 KB
/
UseCaseTests.java
File metadata and controls
40 lines (28 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package ctests;
import java.io.IOException;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import crml.compiler.CompileSettings;
import crml.compiler.ModelicaSimulationException;
import crml.compiler.OMCUtil.CompileStage;
public class UseCaseTests {
static CompileSettings cs = new CompileSettings();
@BeforeAll
public static void setupTestSuite() {
cs.setOutputSubFolder("use_cases");
cs.initTestDir("resources/crml_tutorial/");
}
@DisplayName("Traffic lights use-case test")
@Test
void testTraficLight () throws InterruptedException, IOException, ModelicaSimulationException{
String filePath = "traffic_light/";
Util.runTest(filePath, cs, CompileStage.TRANSLATE);
}
/** @DisplayName("Pumping System use-case test")
@Test
void testPumpingSystem () throws InterruptedException, IOException, ModelicaSimulationException{
String filePath = "pumping_system/";
Util.runTest(filePath, cs, CompileStage.TRANSLATE);
} */
}