41 lines
1.0 KiB
Java
41 lines
1.0 KiB
Java
package jmri.jmrix.cmri.serial.serialmon;
|
|
|
|
import java.awt.GraphicsEnvironment;
|
|
|
|
import jmri.jmrix.cmri.CMRISystemConnectionMemo;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.Assume;
|
|
|
|
/**
|
|
* Test simple functioning of SerialMonAction
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
*/
|
|
public class SerialMonActionTest {
|
|
|
|
@Test
|
|
public void testStringCtor() {
|
|
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
SerialMonAction action = new SerialMonAction("C/MRI test Action", new CMRISystemConnectionMemo());
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
SerialMonAction action = new SerialMonAction( new CMRISystemConnectionMemo());
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() { JUnitUtil.tearDown(); }
|
|
}
|