Search in sources :

Example 6 with AcelaSystemConnectionMemo

use of jmri.jmrix.acela.AcelaSystemConnectionMemo in project JMRI by JMRI.

the class AcelaMonActionTest method testStringMemoCtor.

@Test
public void testStringMemoCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    AcelaMonAction action = new AcelaMonAction("Acela test Action", new AcelaSystemConnectionMemo());
    Assert.assertNotNull("exists", action);
}
Also used : AcelaSystemConnectionMemo(jmri.jmrix.acela.AcelaSystemConnectionMemo) Test(org.junit.Test)

Example 7 with AcelaSystemConnectionMemo

use of jmri.jmrix.acela.AcelaSystemConnectionMemo in project JMRI by JMRI.

the class AcelaPacketGenFrameTest method testCtor.

@Test
public void testCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    AcelaPacketGenFrame f = new AcelaPacketGenFrame(new AcelaSystemConnectionMemo());
    Assert.assertNotNull("exists", f);
}
Also used : AcelaSystemConnectionMemo(jmri.jmrix.acela.AcelaSystemConnectionMemo) Test(org.junit.Test)

Example 8 with AcelaSystemConnectionMemo

use of jmri.jmrix.acela.AcelaSystemConnectionMemo in project JMRI by JMRI.

the class AcelaComponentFactoryTest method setUp.

// The minimal setup for log4J
@Before
public void setUp() {
    apps.tests.Log4JFixture.setUp();
    jmri.util.JUnitUtil.resetInstanceManager();
    AcelaTrafficController tc = new AcelaTrafficControlScaffold();
    memo = new AcelaSystemConnectionMemo(tc);
}
Also used : AcelaTrafficController(jmri.jmrix.acela.AcelaTrafficController) AcelaTrafficControlScaffold(jmri.jmrix.acela.AcelaTrafficControlScaffold) AcelaSystemConnectionMemo(jmri.jmrix.acela.AcelaSystemConnectionMemo) Before(org.junit.Before)

Example 9 with AcelaSystemConnectionMemo

use of jmri.jmrix.acela.AcelaSystemConnectionMemo in project JMRI by JMRI.

the class NodeConfigActionTest method testDefaultCtor.

@Test
public void testDefaultCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    AcelaSystemConnectionMemo memo = new AcelaSystemConnectionMemo();
    InstanceManager.setDefault(AcelaSystemConnectionMemo.class, memo);
    NodeConfigAction action = new NodeConfigAction();
    Assert.assertNotNull("exists", action);
}
Also used : AcelaSystemConnectionMemo(jmri.jmrix.acela.AcelaSystemConnectionMemo) Test(org.junit.Test)

Example 10 with AcelaSystemConnectionMemo

use of jmri.jmrix.acela.AcelaSystemConnectionMemo in project JMRI by JMRI.

the class NodeConfigFrameTest method testCtor.

@Test
public void testCtor() {
    Assume.assumeFalse(GraphicsEnvironment.isHeadless());
    NodeConfigFrame f = new NodeConfigFrame(new AcelaSystemConnectionMemo());
    Assert.assertNotNull("exists", f);
}
Also used : AcelaSystemConnectionMemo(jmri.jmrix.acela.AcelaSystemConnectionMemo) Test(org.junit.Test)

Aggregations

AcelaSystemConnectionMemo (jmri.jmrix.acela.AcelaSystemConnectionMemo)11 Test (org.junit.Test)9 Before (org.junit.Before)2 AcelaTrafficControlScaffold (jmri.jmrix.acela.AcelaTrafficControlScaffold)1 AcelaTrafficController (jmri.jmrix.acela.AcelaTrafficController)1