43 lines
1.1 KiB
Java
43 lines
1.1 KiB
Java
package jmri.jmrix.dccpp.swing;
|
|
|
|
import jmri.jmrix.dccpp.DCCppCommandStation;
|
|
import jmri.jmrix.dccpp.DCCppInterfaceScaffold;
|
|
import jmri.jmrix.dccpp.DCCppSystemConnectionMemo;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class DCCppComponentFactoryTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
// infrastructure objects
|
|
DCCppInterfaceScaffold tc = new DCCppInterfaceScaffold(new DCCppCommandStation());
|
|
|
|
DCCppSystemConnectionMemo memo = new DCCppSystemConnectionMemo(tc);
|
|
|
|
DCCppComponentFactory t = new DCCppComponentFactory(memo);
|
|
Assert.assertNotNull("exists",t);
|
|
}
|
|
|
|
@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();
|
|
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(DCCppComponentFactoryTest.class);
|
|
|
|
}
|