use of jmri.jmrix.ieee802154.IEEE802154Node in project JMRI by JMRI.
the class EditNodeFrameTest 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) {
}
};
}
};
EditNodeFrame t = new EditNodeFrame(tc, tc.newNode());
Assert.assertNotNull("exists", t);
}
use of jmri.jmrix.ieee802154.IEEE802154Node in project JMRI by JMRI.
the class NodeConfigFrameTest 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;
}
};
}
use of jmri.jmrix.ieee802154.IEEE802154Node 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