43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
package jmri.jmrix.lenz.swing.lz100;
|
|
|
|
import java.awt.GraphicsEnvironment;
|
|
import jmri.jmrix.lenz.LenzCommandStation;
|
|
import jmri.jmrix.lenz.XNetInterfaceScaffold;
|
|
import jmri.jmrix.lenz.XNetSystemConnectionMemo;
|
|
import jmri.util.JUnitUtil;
|
|
import org.junit.Assert;
|
|
import org.junit.Assume;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
* LZ100InternalFrameTest.java
|
|
*
|
|
* Test for the jmri.jmrix.lenz.swing.lz100.LZ100InternalFrame class
|
|
*
|
|
* @author Paul Bender
|
|
*/
|
|
public class LZ100InternalFrameTest {
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
// infrastructure objects
|
|
XNetInterfaceScaffold tc = new XNetInterfaceScaffold(new LenzCommandStation());
|
|
|
|
LZ100InternalFrame f = new LZ100InternalFrame(new XNetSystemConnectionMemo(tc));
|
|
Assert.assertNotNull(f);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.clearShutDownManager(); // put in place because AbstractMRTrafficController implementing subclass was not terminated properly
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
}
|