41 lines
1.0 KiB
Java
41 lines
1.0 KiB
Java
package jmri.jmrit.throttle;
|
|
|
|
import java.awt.GraphicsEnvironment;
|
|
|
|
import jmri.jmrit.throttle.panels.ControlPanel;
|
|
import jmri.jmrit.throttle.panels.ControlPanelPropertyEditor;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.Assume;
|
|
|
|
/**
|
|
* Test simple functioning of ControlPanelPropertyEditor
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
*/
|
|
public class ControlPanelPropertyEditorTest {
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
ControlPanel panel = new ControlPanel();
|
|
ControlPanelPropertyEditor editor = new ControlPanelPropertyEditor(panel);
|
|
Assert.assertNotNull("exists", editor);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
JUnitUtil.resetProfileManager();
|
|
JUnitUtil.initDebugThrottleManager();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.resetWindows(false,false);
|
|
JUnitUtil.tearDown();
|
|
}
|
|
}
|