Search in sources :

Example 1 with XNetSystemConnectionMemo

use of jmri.jmrix.lenz.XNetSystemConnectionMemo in project JMRI by JMRI.

the class Z21XNetThrottleManagerTest method setUp.

// The minimal setup for log4J
@Override
@Before
public void setUp() {
    apps.tests.Log4JFixture.setUp();
    jmri.util.JUnitUtil.resetInstanceManager();
    XNetInterfaceScaffold tc = new XNetInterfaceScaffold(new LenzCommandStation());
    tm = new Z21XNetThrottleManager(new XNetSystemConnectionMemo(tc));
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) XNetSystemConnectionMemo(jmri.jmrix.lenz.XNetSystemConnectionMemo) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation) Before(org.junit.Before)

Example 2 with XNetSystemConnectionMemo

use of jmri.jmrix.lenz.XNetSystemConnectionMemo in project JMRI by JMRI.

the class ZTC611XNetInitializationManagerTest method testCtor.

public void testCtor() {
    // infrastructure objects
    XNetInterfaceScaffold t = new XNetInterfaceScaffold(new LenzCommandStation());
    XNetListenerScaffold l = new XNetListenerScaffold();
    XNetSystemConnectionMemo memo = new XNetSystemConnectionMemo(t);
    ZTC611XNetInitializationManager m = new ZTC611XNetInitializationManager(memo) {

        @Override
        protected int getInitTimeout() {
            // shorten, because this will fail & delay test
            return 50;
        }
    };
    Assert.assertNotNull("exists", t);
    Assert.assertNotNull("exists", l);
    Assert.assertNotNull("exists", m);
    Assert.assertNotNull("exists", memo);
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) XNetListenerScaffold(jmri.jmrix.lenz.XNetListenerScaffold) XNetSystemConnectionMemo(jmri.jmrix.lenz.XNetSystemConnectionMemo) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation)

Example 3 with XNetSystemConnectionMemo

use of jmri.jmrix.lenz.XNetSystemConnectionMemo in project JMRI by JMRI.

the class XNetComponentFactoryTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new XNetInterfaceScaffold(new LenzCommandStation());
    m = new XNetSystemConnectionMemo();
    m.setSystemPrefix("ABC");
    tc.setSystemConnectionMemo(m);
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) XNetSystemConnectionMemo(jmri.jmrix.lenz.XNetSystemConnectionMemo) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation) Before(org.junit.Before)

Example 4 with XNetSystemConnectionMemo

use of jmri.jmrix.lenz.XNetSystemConnectionMemo in project JMRI by JMRI.

the class XNetMenuTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new XNetInterfaceScaffold(new LenzCommandStation());
    m = new XNetSystemConnectionMemo();
    m.setSystemPrefix("ABC");
    tc.setSystemConnectionMemo(m);
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) XNetSystemConnectionMemo(jmri.jmrix.lenz.XNetSystemConnectionMemo) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation) Before(org.junit.Before)

Example 5 with XNetSystemConnectionMemo

use of jmri.jmrix.lenz.XNetSystemConnectionMemo in project JMRI by JMRI.

the class Z21XNetInitializationManagerTest method testCtor.

@Test
public void testCtor() {
    // infrastructure objects
    XNetInterfaceScaffold t = new XNetInterfaceScaffold(new LenzCommandStation());
    XNetListenerScaffold l = new XNetListenerScaffold();
    XNetSystemConnectionMemo memo = new XNetSystemConnectionMemo(t);
    Z21XNetInitializationManager m = new Z21XNetInitializationManager(memo) {

        @Override
        protected int getInitTimeout() {
            // shorten, because this will fail & delay test
            return 50;
        }
    };
    Assert.assertNotNull("exists", t);
    Assert.assertNotNull("exists", l);
    Assert.assertNotNull("exists", m);
    Assert.assertNotNull("exists", memo);
}
Also used : XNetInterfaceScaffold(jmri.jmrix.lenz.XNetInterfaceScaffold) XNetListenerScaffold(jmri.jmrix.lenz.XNetListenerScaffold) XNetSystemConnectionMemo(jmri.jmrix.lenz.XNetSystemConnectionMemo) LenzCommandStation(jmri.jmrix.lenz.LenzCommandStation) Test(org.junit.Test)

Aggregations

XNetInterfaceScaffold (jmri.jmrix.lenz.XNetInterfaceScaffold)13 XNetSystemConnectionMemo (jmri.jmrix.lenz.XNetSystemConnectionMemo)13 LenzCommandStation (jmri.jmrix.lenz.LenzCommandStation)11 Test (org.junit.Test)6 XNetListenerScaffold (jmri.jmrix.lenz.XNetListenerScaffold)4 Before (org.junit.Before)4 XNetThrottleTest (jmri.jmrix.lenz.XNetThrottleTest)2