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