Search in sources :

Example 16 with TrafficControllerScaffold

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);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) DccLocoAddress(jmri.DccLocoAddress) Test(org.junit.Test)

Example 17 with TrafficControllerScaffold

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);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Test(org.junit.Test)

Example 18 with TrafficControllerScaffold

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);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Before(org.junit.Before)

Example 19 with TrafficControllerScaffold

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);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Before(org.junit.Before)

Aggregations

TrafficControllerScaffold (jmri.jmrix.can.TrafficControllerScaffold)19 Test (org.junit.Test)13 CanSystemConnectionMemo (jmri.jmrix.can.CanSystemConnectionMemo)12 Before (org.junit.Before)4 CanReply (jmri.jmrix.can.CanReply)2 DccLocoAddress (jmri.DccLocoAddress)1 CanMessage (jmri.jmrix.can.CanMessage)1