use of jmri.DccLocoAddress in project JMRI by JMRI.
the class NmraConsistTest method testCtor.
@Test
public void testCtor() {
// NmraLocoAddress constructor test.
NmraConsist c = new NmraConsist(new DccLocoAddress(12, true));
Assert.assertNotNull(c);
}
use of jmri.DccLocoAddress in project JMRI by JMRI.
the class DccLocoAddressSelectorTest method testSetNumByField2.
public void testSetNumByField2() {
setThrottleManager();
DccLocoAddressSelector sel = new DccLocoAddressSelector();
JTextField f = sel.getTextField();
f.setText("1220");
Assert.assertEquals("check initial number ", 1220, sel.getAddress().getNumber());
sel.setAddress(new DccLocoAddress(20, false));
Assert.assertEquals("check updated number ", 20, sel.getAddress().getNumber());
Assert.assertEquals("check updated type ", false, sel.getAddress().isLongAddress());
}
use of jmri.DccLocoAddress 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);
}
use of jmri.DccLocoAddress in project JMRI by JMRI.
the class EasyDccConsistTest method testCtor2.
@Test
public void testCtor2() {
// NmraLocoAddress constructor test.
EasyDccConsist c = new EasyDccConsist(new DccLocoAddress(12, true));
Assert.assertNotNull(c);
}
use of jmri.DccLocoAddress in project JMRI by JMRI.
the class LocoNetConsistTest method testCtor2.
@Test
public void testCtor2() {
// DccLocoAddress constructor test.
LocoNetConsist c = new LocoNetConsist(new DccLocoAddress(3, false), memo);
ReturnSlotInfo();
Assert.assertNotNull(c);
}
Aggregations