39 lines
1.1 KiB
Java
39 lines
1.1 KiB
Java
package jmri.jmrix.bachrus;
|
|
|
|
import java.awt.GraphicsEnvironment;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class SpeedoConsoleFrameTest extends jmri.util.JmriJFrameTestBase {
|
|
|
|
@BeforeEach
|
|
@Override
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
JUnitUtil.initRosterConfigManager();
|
|
JUnitUtil.initDefaultUserMessagePreferences();
|
|
JUnitUtil.initDebugThrottleManager();
|
|
if (!GraphicsEnvironment.isHeadless()) {
|
|
SpeedoSystemConnectionMemo m = new SpeedoSystemConnectionMemo();
|
|
SpeedoTrafficController tc = new SpeedoTrafficController(m);
|
|
m.setSpeedoTrafficController(tc);
|
|
frame = new SpeedoConsoleFrame(m);
|
|
}
|
|
}
|
|
|
|
@AfterEach
|
|
@Override
|
|
public void tearDown() {
|
|
JUnitUtil.clearShutDownManager(); // put in place because AbstractMRTrafficController implementing subclass was not terminated properly
|
|
super.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(SpeedoConsoleFrameTest.class);
|
|
}
|