Search in sources :

Example 1 with IEEE802154TrafficController

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

the class NodeConfigActionTest method testDefaultCtor.

@Test
public void testDefaultCtor() {
    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);
    NodeConfigAction action = new NodeConfigAction();
    Assert.assertNotNull("exists", action);
}
Also used : IEEE802154TrafficController(jmri.jmrix.ieee802154.IEEE802154TrafficController) IEEE802154SystemConnectionMemo(jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo) Test(org.junit.Test)

Example 2 with IEEE802154TrafficController

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

the class NodeConfigActionTest 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);
    NodeConfigAction action = new NodeConfigAction("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 3 with IEEE802154TrafficController

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

the class PacketGenActionTest method testDefaultCtor.

@Test
public void testDefaultCtor() {
    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();
    Assert.assertNotNull("exists", action);
}
Also used : IEEE802154TrafficController(jmri.jmrix.ieee802154.IEEE802154TrafficController) IEEE802154SystemConnectionMemo(jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo) Test(org.junit.Test)

Example 4 with IEEE802154TrafficController

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

the class PacketGenFrameTest method setUp.

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

        @Override
        public void setInstance() {
        }

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

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

Example 5 with IEEE802154TrafficController

use of jmri.jmrix.ieee802154.IEEE802154TrafficController 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)

Aggregations

IEEE802154TrafficController (jmri.jmrix.ieee802154.IEEE802154TrafficController)8 Test (org.junit.Test)6 IEEE802154SystemConnectionMemo (jmri.jmrix.ieee802154.IEEE802154SystemConnectionMemo)4 AbstractMRListener (jmri.jmrix.AbstractMRListener)2 AbstractMRMessage (jmri.jmrix.AbstractMRMessage)2 IEEE802154Node (jmri.jmrix.ieee802154.IEEE802154Node)2 Before (org.junit.Before)2