42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package jmri.jmrix.acela.acelamon;
|
|
|
|
import jmri.InstanceManager;
|
|
import jmri.jmrix.acela.AcelaSystemConnectionMemo;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
|
|
|
|
/**
|
|
* Test simple functioning of AcelaMonAction
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
*/
|
|
public class AcelaMonActionTest {
|
|
|
|
@Test
|
|
@DisabledIfSystemProperty(named ="java.awt.headless", matches ="true")
|
|
public void testAcelaMonStringMemoCtor() {
|
|
AcelaMonAction action = new AcelaMonAction("Acela test Action", new AcelaSystemConnectionMemo());
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@Test
|
|
@DisabledIfSystemProperty(named ="java.awt.headless", matches ="true")
|
|
public void testDefaultCtor() {
|
|
AcelaSystemConnectionMemo memo = new AcelaSystemConnectionMemo();
|
|
InstanceManager.setDefault(AcelaSystemConnectionMemo.class, memo);
|
|
AcelaMonAction action = new AcelaMonAction();
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() { JUnitUtil.tearDown(); }
|
|
}
|