Search in sources :

Example 1 with TrafficControllerScaffold

use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.

the class CbusTurnoutManagerTest method testCTor.

@Test
public void testCTor() {
    TrafficControllerScaffold tc = new TrafficControllerScaffold();
    CanSystemConnectionMemo memo = new CanSystemConnectionMemo();
    memo.setTrafficController(tc);
    CbusTurnoutManager t = new CbusTurnoutManager(memo);
    Assert.assertNotNull("exists", t);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Test(org.junit.Test)

Example 2 with TrafficControllerScaffold

use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.

the class CbusTurnoutTest method testCTor.

@Test
public void testCTor() {
    CbusTurnout t = new CbusTurnout("MT", "+1;-1", new TrafficControllerScaffold());
    Assert.assertNotNull("exists", t);
}
Also used : TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Test(org.junit.Test)

Example 3 with TrafficControllerScaffold

use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.

the class CbusThrottleManagerTest method testCTor.

@Test
public void testCTor() {
    TrafficControllerScaffold tc = new TrafficControllerScaffold();
    CanSystemConnectionMemo memo = new CanSystemConnectionMemo();
    memo.setTrafficController(tc);
    CbusThrottleManager t = new CbusThrottleManager(memo);
    Assert.assertNotNull("exists", t);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Test(org.junit.Test)

Example 4 with TrafficControllerScaffold

use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.

the class CbusReporterManagerTest method setUp.

// The minimal setup for log4J
@Before
@Override
public void setUp() {
    apps.tests.Log4JFixture.setUp();
    jmri.util.JUnitUtil.resetInstanceManager();
    tc = new TrafficControllerScaffold();
    CanSystemConnectionMemo memo = new CanSystemConnectionMemo();
    memo.setTrafficController(tc);
    l = new CbusReporterManager(memo);
}
Also used : CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Before(org.junit.Before)

Example 5 with TrafficControllerScaffold

use of jmri.jmrix.can.TrafficControllerScaffold in project JMRI by JMRI.

the class CbusReporterTest method testCTor.

@Test
public void testCTor() {
    CbusReporter t = new CbusReporter(1, new TrafficControllerScaffold(), "Test");
    Assert.assertNotNull("exists", t);
}
Also used : TrafficControllerScaffold(jmri.jmrix.can.TrafficControllerScaffold) Test(org.junit.Test)

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