use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.
the class ConnectionConfigXmlTest method testStore.
@Test
@Ignore("causes errors")
public void testStore() {
// tests that store produces an XML element from a new ConnectionConfig object.
ConnectionConfigXml c = new ConnectionConfigXml();
SerialDriverAdapter p = new SerialDriverAdapter() {
/**
* set up all of the other objects to operate connected to this port
*/
@Override
public void configure() {
// connect to the traffic controller
SerialTrafficController tc = new SerialTrafficControlScaffold();
tc.connectPort(this);
((CMRISystemConnectionMemo) getSystemConnectionMemo()).setTrafficController(tc);
((CMRISystemConnectionMemo) getSystemConnectionMemo()).configureManagers();
}
};
ConnectionConfig cc = new ConnectionConfig(p);
p.configure();
c.getInstance(cc);
Assert.assertNotNull("ConnectionConfigXml store()", c.store(cc));
}
use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.
the class SerialMonActionTest method testStringCtor.
@Test
public void testStringCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
SerialMonAction action = new SerialMonAction("C/MRI test Action", new CMRISystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.
the class ListActionTest method testStringCtor.
@Test
public void testStringCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
ListAction action = new ListAction("CMRI test Action", new CMRISystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.
the class ListFrameTest method testMemoCtor.
@Test
public void testMemoCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
ListFrame action = new ListFrame(new CMRISystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.
the class NodeConfigFrameTest method testMemoCtor.
@Test
public void testMemoCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
NodeConfigFrame action = new NodeConfigFrame(new CMRISystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
Aggregations