Search in sources :

Example 11 with IEEE802154SystemConnectionMemo

use of jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo in project JMRI by JMRI.

the class PacketGenActionTest method testStringMemoCtor.

@Test
public void testStringMemoCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    PacketGenAction action = new PacketGenAction("IEEE 802.15.4 test Action", new IEEE802154SystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : IEEE802154SystemConnectionMemo(jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo) Test(org.junit.Test)

Example 12 with IEEE802154SystemConnectionMemo

use of jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo in project JMRI by JMRI.

the class PacketGenActionTest method testStringCtor.

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

        @Override
        public void setInstance() {
        }

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

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

Example 13 with IEEE802154SystemConnectionMemo

use of jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo in project JMRI by JMRI.

the class NodeConfigActionTest method testStringMemoCtor.

@Test
public void testStringMemoCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    NodeConfigAction action = new NodeConfigAction("IEEE 802.15.4 test Action", new IEEE802154SystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : IEEE802154SystemConnectionMemo(jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo) Test(org.junit.Test)

Aggregations

IEEE802154SystemConnectionMemo (jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo)12 Test (org.junit.Test)12 IEEE802154TrafficController (jmri.jmrix.ieee802154.IEEE802154TrafficController)4 XBeeConnectionMemo (jmri.jmrix.ieee802154.xbee.XBeeConnectionMemo)1