use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class NmraNetComponentFactoryTest method setUp.
@Before
public void setUp() {
Log4JFixture.setUp();
JUnitUtil.resetInstanceManager();
tc = new TestTrafficController();
m = new CanSystemConnectionMemo();
m.setSystemPrefix("ABC");
}
use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class NmraNetMenuTest method setUp.
@Before
public void setUp() {
Log4JFixture.setUp();
JUnitUtil.resetInstanceManager();
tc = new TestTrafficController();
m = new CanSystemConnectionMemo();
m.setSystemPrefix("ABC");
}
use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class CbusProgrammerManagerTest method testGlobal.
public void testGlobal() {
CbusProgrammerManager m = new CbusProgrammerManager(new TestTrafficController());
Assert.assertTrue("no global mode", !m.isGlobalModePossible());
}
use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class CbusProgrammerTest method testSetMode.
public void testSetMode() {
CbusProgrammer p = new CbusProgrammer(10, new TestTrafficController());
try {
p.setMode(DefaultProgrammerManager.PAGEMODE);
} catch (IllegalArgumentException e) {
return;
}
Assert.fail("No IllegalArgumentException thrown");
}
use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class CbusSensorManagerTest method setUp.
// The minimal setup for log4J
@Override
@Before
public void setUp() {
apps.tests.Log4JFixture.setUp();
jmri.util.JUnitUtil.resetInstanceManager();
memo = new CanSystemConnectionMemo();
memo.setTrafficController(new TestTrafficController());
l = new CbusSensorManager(memo);
}
Aggregations