Files
JIMRI/java/test/jmri/jmris/simpleserver/SimpleServerActionTest.java
T
2026-06-17 14:00:51 +02:00

40 lines
949 B
Java

package jmri.jmris.simpleserver;
import jmri.util.JUnitUtil;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
/**
* Tests for the jmri.jmris.simpleserver.SimpleServerAction class
*
* @author Paul Bender Copyright (C) 2016
*/
public class SimpleServerActionTest {
@Test
@DisabledIfSystemProperty(named = "java.awt.headless", matches = "true")
public void testCtor() {
SimpleServerAction a = new SimpleServerAction();
Assertions.assertNotNull(a);
}
@Test
@DisabledIfSystemProperty(named = "java.awt.headless", matches = "true")
public void testSimpleServerActionStringCtor() {
SimpleServerAction a = new SimpleServerAction("Hello World");
Assertions.assertNotNull(a);
}
@BeforeEach
public void setUp() {
JUnitUtil.setUp();
}
@AfterEach
public void tearDown() {
JUnitUtil.tearDown();
}
}