Search in sources :

Example 6 with CanSystemConnectionMemo

use of jmri.jmrix.can.CanSystemConnectionMemo 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 7 with CanSystemConnectionMemo

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

the class CbusComponentFactoryTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new TestTrafficController();
    m = new CanSystemConnectionMemo();
    m.setSystemPrefix("ABC");
}
Also used : TestTrafficController(jmri.jmrix.can.TestTrafficController) CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) Before(org.junit.Before)

Example 8 with CanSystemConnectionMemo

use of jmri.jmrix.can.CanSystemConnectionMemo 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 9 with CanSystemConnectionMemo

use of jmri.jmrix.can.CanSystemConnectionMemo 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 10 with CanSystemConnectionMemo

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

the class CanComponentFactoryTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new TestTrafficController();
    m = new CanSystemConnectionMemo();
    m.setSystemPrefix("ABC");
}
Also used : TestTrafficController(jmri.jmrix.can.TestTrafficController) CanSystemConnectionMemo(jmri.jmrix.can.CanSystemConnectionMemo) Before(org.junit.Before)

Aggregations

CanSystemConnectionMemo (jmri.jmrix.can.CanSystemConnectionMemo)25 Before (org.junit.Before)14 TrafficControllerScaffold (jmri.jmrix.can.TrafficControllerScaffold)12 Test (org.junit.Test)10 TestTrafficController (jmri.jmrix.can.TestTrafficController)7 DccLocoAddress (jmri.DccLocoAddress)2 CanMessage (jmri.jmrix.can.CanMessage)1 CanReply (jmri.jmrix.can.CanReply)1