Search in sources :

Example 16 with CMRISystemConnectionMemo

use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.

the class SerialPacketGenActionTest method testCtor.

@Test
public void testCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    SerialPacketGenAction action = new SerialPacketGenAction(new CMRISystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) Test(org.junit.Test)

Example 17 with CMRISystemConnectionMemo

use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.

the class DiagnosticActionTest method testStringCtor.

@Test
public void testStringCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    DiagnosticAction action = new DiagnosticAction("CMRI test Action", new CMRISystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) Test(org.junit.Test)

Example 18 with CMRISystemConnectionMemo

use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.

the class DiagnosticFrameTest method testMemoCtor.

@Test
public void testMemoCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    DiagnosticFrame action = new DiagnosticFrame(new CMRISystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) Test(org.junit.Test)

Example 19 with CMRISystemConnectionMemo

use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.

the class NodeConfigActionTest method testStringCtor.

@Test
public void testStringCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    NodeConfigAction action = new NodeConfigAction("C/MRI test Action", new CMRISystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) Test(org.junit.Test)

Example 20 with CMRISystemConnectionMemo

use of jmri.jmrix.cmri.CMRISystemConnectionMemo in project JMRI by JMRI.

the class ConnectionConfig method loadDetails.

@Override
public void loadDetails(JPanel details) {
    setInstance();
    b.addActionListener(new NodeConfigAction((CMRISystemConnectionMemo) adapter.getSystemConnectionMemo()));
    if (!additionalItems.contains(b)) {
        additionalItems.add(b);
    }
    super.loadDetails(details);
}
Also used : CMRISystemConnectionMemo(jmri.jmrix.cmri.CMRISystemConnectionMemo) NodeConfigAction(jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction)

Aggregations

CMRISystemConnectionMemo (jmri.jmrix.cmri.CMRISystemConnectionMemo)23 Test (org.junit.Test)16 SerialTrafficController (jmri.jmrix.cmri.serial.SerialTrafficController)5 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)3 NodeConfigAction (jmri.jmrix.cmri.serial.nodeconfig.NodeConfigAction)3 JButton (javax.swing.JButton)2 SerialNode (jmri.jmrix.cmri.serial.SerialNode)2 Element (org.jdom2.Element)2 BoxLayout (javax.swing.BoxLayout)1 JPanel (javax.swing.JPanel)1 SerialTrafficControlScaffold (jmri.jmrix.cmri.serial.SerialTrafficControlScaffold)1 ConnectionConfig (jmri.jmrix.cmri.serial.serialdriver.ConnectionConfig)1 SerialDriverAdapter (jmri.jmrix.cmri.serial.serialdriver.SerialDriverAdapter)1 Ignore (org.junit.Ignore)1