use of jmri.jmrix.ieee802154.IEEE802154Node 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);
}
use of jmri.jmrix.ieee802154.IEEE802154Node 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.IEEE802154Node 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.IEEE802154Node 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.IEEE802154Node in project JMRI by JMRI.
the class AddNodeFrameTest method testCTor.
@Test
public void testCTor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
IEEE802154TrafficController tc = new IEEE802154TrafficController() {
@Override
public void setInstance() {
}
@Override
protected AbstractMRReply newReply() {
return null;
}
@Override
public IEEE802154Node newNode() {
return new IEEE802154Node() {
@Override
public AbstractMRMessage createInitPacket() {
return null;
}
@Override
public AbstractMRMessage createOutPacket() {
return null;
}
@Override
public boolean getSensorsActive() {
return false;
}
@Override
public boolean handleTimeout(AbstractMRMessage m, AbstractMRListener l) {
return false;
}
@Override
public void resetTimeout(AbstractMRMessage m) {
}
};
}
};
AddNodeFrame t = new AddNodeFrame(tc);
Assert.assertNotNull("exists", t);
}
Aggregations