Search in sources :

Example 6 with XNetListenerScaffold

use of jmri.jmrix.lenz.XNetListenerScaffold 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

XNetListenerScaffold (jmri.jmrix.lenz.XNetListenerScaffold)6 XNetInterfaceScaffold (jmri.jmrix.lenz.XNetInterfaceScaffold)4 XNetSystemConnectionMemo (jmri.jmrix.lenz.XNetSystemConnectionMemo)4 LenzCommandStation (jmri.jmrix.lenz.LenzCommandStation)3 Test (org.junit.Test)3 XNetMessage (jmri.jmrix.lenz.XNetMessage)1