Search in sources :

Example 36 with LenzCommandStation

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);
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) XNetSystemConnectionMemo(jmri.jmrix.lenz.XNetSystemConnectionMemo) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation) Test(org.junit.Test) XNetThrottleTest(jmri.jmrix.lenz.XNetThrottleTest)

Example 37 with LenzCommandStation

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);
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation) Before(org.junit.Before)

Aggregations

LenzCommandStation (jmri.jmrix.lenz.LenzCommandStation)37 XNetInterfaceScaffold (jmri.jmrix.lenz.XNetInterfaceScaffold)26 XNetSystemConnectionMemo (jmri.jmrix.lenz.XNetSystemConnectionMemo)11 XNetReply (jmri.jmrix.lenz.XNetReply)10 XNetTrafficController (jmri.jmrix.lenz.XNetTrafficController)10 XNetInitializationManager (jmri.jmrix.lenz.XNetInitializationManager)8 Test (org.junit.Test)8 Before (org.junit.Before)6 XNetListenerScaffold (jmri.jmrix.lenz.XNetListenerScaffold)3 XNetPacketizer (jmri.jmrix.lenz.XNetPacketizer)3 XNetThrottleTest (jmri.jmrix.lenz.XNetThrottleTest)2 Turnout (jmri.Turnout)1 TurnoutManager (jmri.TurnoutManager)1