Search in sources :

Example 6 with XBeeTrafficController

use of jmri.jmrix.ieee802154.xbee.XBeeTrafficController in project JMRI by JMRI.

the class PacketGenActionTest method testMemoCTor.

@Test
public void testMemoCTor() {
    XBeeTrafficController tc = new XBeeInterfaceScaffold();
    XBeeConnectionMemo m = new XBeeConnectionMemo();
    PacketGenAction t = new PacketGenAction(m);
    Assert.assertNotNull("exists", t);
}
Also used : XBeeTrafficController(jmri.jmrix.ieee802154.xbee.XBeeTrafficController) XBeeConnectionMemo(jmri.jmrix.ieee802154.xbee.XBeeConnectionMemo) XBeeInterfaceScaffold(jmri.jmrix.ieee802154.xbee.XBeeInterfaceScaffold) Test(org.junit.Test)

Example 7 with XBeeTrafficController

use of jmri.jmrix.ieee802154.xbee.XBeeTrafficController in project JMRI by JMRI.

the class AddNodeFrameTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new XBeeTrafficController() {

        @Override
        public void setInstance() {
        }

        @Override
        protected jmri.jmrix.AbstractMRReply newReply() {
            return null;
        }

        @Override
        public jmri.jmrix.ieee802154.IEEE802154Node newNode() {
            return null;
        }
    };
    m = new XBeeConnectionMemo();
    m.setSystemPrefix("ABC");
    tc.setAdapterMemo(m);
}
Also used : XBeeTrafficController(jmri.jmrix.ieee802154.xbee.XBeeTrafficController) XBeeConnectionMemo(jmri.jmrix.ieee802154.xbee.XBeeConnectionMemo) Before(org.junit.Before)

Example 8 with XBeeTrafficController

use of jmri.jmrix.ieee802154.xbee.XBeeTrafficController in project JMRI by JMRI.

the class NodeConfigActionTest method testDefaultCtor.

@Test
public void testDefaultCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    XBeeConnectionMemo memo = new XBeeConnectionMemo();
    XBeeTrafficController tc = new XBeeTrafficController() {

        @Override
        public void setInstance() {
        }

        @Override
        protected jmri.jmrix.AbstractMRReply newReply() {
            return null;
        }

        @Override
        public jmri.jmrix.ieee802154.IEEE802154Node newNode() {
            return null;
        }
    };
    InstanceManager.setDefault(XBeeConnectionMemo.class, memo);
    NodeConfigAction action = new NodeConfigAction();
    Assert.assertNotNull("exists", action);
}
Also used : XBeeConnectionMemo(jmri.jmrix.ieee802154.xbee.XBeeConnectionMemo) XBeeTrafficController(jmri.jmrix.ieee802154.xbee.XBeeTrafficController) Test(org.junit.Test)

Example 9 with XBeeTrafficController

use of jmri.jmrix.ieee802154.xbee.XBeeTrafficController in project JMRI by JMRI.

the class NodeConfigActionTest method testStringCtor.

@Test
public void testStringCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    XBeeConnectionMemo memo = new XBeeConnectionMemo();
    XBeeTrafficController tc = new XBeeTrafficController() {

        @Override
        public void setInstance() {
        }

        @Override
        protected jmri.jmrix.AbstractMRReply newReply() {
            return null;
        }

        @Override
        public jmri.jmrix.ieee802154.IEEE802154Node newNode() {
            return null;
        }
    };
    InstanceManager.setDefault(XBeeConnectionMemo.class, memo);
    NodeConfigAction action = new NodeConfigAction("IEEE 802.15.4 test Action");
    Assert.assertNotNull("exists", action);
}
Also used : XBeeConnectionMemo(jmri.jmrix.ieee802154.xbee.XBeeConnectionMemo) XBeeTrafficController(jmri.jmrix.ieee802154.xbee.XBeeTrafficController) Test(org.junit.Test)

Example 10 with XBeeTrafficController

use of jmri.jmrix.ieee802154.xbee.XBeeTrafficController in project JMRI by JMRI.

the class NodeConfigFrameTest method setUp.

@Before
public void setUp() {
    Log4JFixture.setUp();
    JUnitUtil.resetInstanceManager();
    tc = new XBeeTrafficController() {

        @Override
        public void setInstance() {
        }

        @Override
        protected jmri.jmrix.AbstractMRReply newReply() {
            return null;
        }

        @Override
        public jmri.jmrix.ieee802154.IEEE802154Node newNode() {
            return null;
        }
    };
}
Also used : XBeeTrafficController(jmri.jmrix.ieee802154.xbee.XBeeTrafficController) Before(org.junit.Before)

Aggregations

XBeeTrafficController (jmri.jmrix.ieee802154.xbee.XBeeTrafficController)12 XBeeConnectionMemo (jmri.jmrix.ieee802154.xbee.XBeeConnectionMemo)11 Test (org.junit.Test)6 XBeeInterfaceScaffold (jmri.jmrix.ieee802154.xbee.XBeeInterfaceScaffold)4 Before (org.junit.Before)4 AbstractStreamPortController (jmri.jmrix.AbstractStreamPortController)2 XBeeNode (jmri.jmrix.ieee802154.xbee.XBeeNode)2 Element (org.jdom2.Element)2 RemoteXBeeDevice (com.digi.xbee.api.RemoteXBeeDevice)1 TimeoutException (com.digi.xbee.api.exceptions.TimeoutException)1 XBeeException (com.digi.xbee.api.exceptions.XBeeException)1 XBee16BitAddress (com.digi.xbee.api.models.XBee16BitAddress)1 XBee64BitAddress (com.digi.xbee.api.models.XBee64BitAddress)1