use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.
the class Z21XNetThrottleTest method testCtorWithArg.
// Test the constructor with an address specified.
@Override
@Test(timeout = 1000)
public void testCtorWithArg() throws Exception {
XNetInterfaceScaffold tc = new XNetInterfaceScaffold(new LenzCommandStation());
Z21XNetThrottle t = new Z21XNetThrottle(new XNetSystemConnectionMemo(tc), new jmri.DccLocoAddress(3, false), tc);
Assert.assertNotNull(t);
}
use of jmri.jmrix.lenz.LenzCommandStation in project JMRI by JMRI.
the class ZTC611XNetTurnoutManagerTest method setUp.
@Override
@Before
public void setUp() {
apps.tests.Log4JFixture.setUp();
jmri.util.JUnitUtil.resetInstanceManager();
// prepare an interface, register
lnis = new XNetInterfaceScaffold(new LenzCommandStation());
// create and register the manager object
l = new ZTC611XNetTurnoutManager(lnis, "X");
jmri.InstanceManager.setTurnoutManager(l);
}
Aggregations