We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1179e1b commit 5e9bdf5Copy full SHA for 5e9bdf5
src/test/java/jcs/commandStation/autopilot/state/StateMachineStepByStepTest.java
@@ -76,9 +76,14 @@ public void setUp() {
76
route.setLocked(false);
77
ps.persist(route);
78
}
79
- JCS.getJcsCommandStation().switchPower(true);
80
- AutoPilot.runAutoPilot(true);
81
- Logger.info("=========================== setUp done..............");
+ if (JCS.getJcsCommandStation().connect()) {
+
+ JCS.getJcsCommandStation().switchPower(true);
82
+ AutoPilot.runAutoPilot(true);
83
+ Logger.info("=========================== setUp done..............");
84
+ } else {
85
+ Logger.error("###### Can't connect to command station! ########");
86
+ }
87
88
89
@AfterEach
0 commit comments