40 lines
948 B
Java
40 lines
948 B
Java
package jmri.jmrix.loconet.loconetovertcp;
|
|
|
|
import java.awt.GraphicsEnvironment;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.Assume;
|
|
|
|
/**
|
|
* Test simple functioning of LnTcpServerAction
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
*/
|
|
public class LnTcpServerActionTest {
|
|
|
|
@Test
|
|
public void testStringCtor() {
|
|
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
LnTcpServerAction action = new LnTcpServerAction("LocoNet test Action");
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
LnTcpServerAction action = new LnTcpServerAction();
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() { JUnitUtil.tearDown(); }
|
|
}
|