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