use of jmri.jmrix.can.TestTrafficController 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");
}
use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class CbusSensorTest method testLocalChange.
public void testLocalChange() throws jmri.JmriException {
// load dummy TrafficController
TestTrafficController t = new TestTrafficController();
CbusSensor s = new CbusSensor("MS", "+1;-1", t);
t.rcvMessage = null;
s.setKnownState(Sensor.ACTIVE);
Assert.assertTrue(s.getKnownState() == Sensor.ACTIVE);
Assert.assertTrue(new CbusAddress("+1").match(t.rcvMessage));
t.rcvMessage = null;
s.setKnownState(Sensor.INACTIVE);
Assert.assertTrue(s.getKnownState() == Sensor.INACTIVE);
Assert.assertTrue(new CbusAddress("-1").match(t.rcvMessage));
}
use of jmri.jmrix.can.TestTrafficController 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");
}
use of jmri.jmrix.can.TestTrafficController in project JMRI by JMRI.
the class CanMenuTest 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 CbusMenuTest method setUp.
@Before
public void setUp() {
Log4JFixture.setUp();
JUnitUtil.resetInstanceManager();
tc = new TestTrafficController();
m = new CanSystemConnectionMemo();
m.setSystemPrefix("ABC");
}
Aggregations