package jmri.jmrit.simplelightctrl; 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 SimpleLightCtrlAction * * @author Paul Bender Copyright (C) 2016 */ public class SimpleLightCtrlActionTest { @Test public void testStringCtor() { Assume.assumeFalse(GraphicsEnvironment.isHeadless()); SimpleLightCtrlAction action = new SimpleLightCtrlAction("Light Control Action"); Assert.assertNotNull("exists", action); } @Test public void testCtor() { Assume.assumeFalse(GraphicsEnvironment.isHeadless()); SimpleLightCtrlAction action = new SimpleLightCtrlAction(); Assert.assertNotNull("exists", action); } @BeforeEach public void setUp() { JUnitUtil.setUp(); } @AfterEach public void tearDown() { JUnitUtil.tearDown(); } }