use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.
the class CbusThrottleTest method testCTor.
@Test
public void testCTor() {
TrafficControllerScaffold tc = new TrafficControllerScaffold();
CanSystemConnectionMemo memo = new CanSystemConnectionMemo();
memo.setTrafficController(tc);
CbusThrottle t = new CbusThrottle(memo, new DccLocoAddress(100, true), 100);
Assert.assertNotNull("exists", t);
}
use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.
the class ConfigToolActionTest method testAction.
@Test
public void testAction() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
// load dummy TrafficController
TrafficControllerScaffold tcs = new TrafficControllerScaffold();
CanSystemConnectionMemo memo = new CanSystemConnectionMemo();
memo.setTrafficController(tcs);
//f.initComponents(memo);
ConfigToolPane pane = new ConfigToolPane();
Assert.assertNotNull("exists", pane);
}
use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.
the class MonitorActionTest method setUp.
// The minimal setup for log4J
@Before
public void setUp() {
apps.tests.Log4JFixture.setUp();
jmri.util.JUnitUtil.resetInstanceManager();
jmri.util.JUnitUtil.initConfigureManager();
jmri.util.JUnitUtil.initDefaultUserMessagePreferences();
tcs = new TrafficControllerScaffold();
memo = new CanSystemConnectionMemo();
memo.setTrafficController(tcs);
}
use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.
the class LoaderActionTest method setUp.
// The minimal setup for log4J
@Before
public void setUp() {
apps.tests.Log4JFixture.setUp();
jmri.util.JUnitUtil.resetInstanceManager();
jmri.util.JUnitUtil.initConfigureManager();
jmri.util.JUnitUtil.initDefaultUserMessagePreferences();
tcs = new TrafficControllerScaffold();
memo = new CanSystemConnectionMemo();
memo.setTrafficController(tcs);
}
Aggregations