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);
}
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);
}
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);
}
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);
}
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;
}
};
}
Aggregations