41 lines
1.0 KiB
Java
41 lines
1.0 KiB
Java
package jmri.jmrix.loconet.swing;
|
|
|
|
import jmri.jmrix.loconet.LnTrafficController;
|
|
import jmri.jmrix.loconet.LocoNetInterfaceScaffold;
|
|
import jmri.jmrix.loconet.LocoNetSystemConnectionMemo;
|
|
import jmri.jmrix.loconet.SlotManager;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class LnComponentFactoryTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
LnTrafficController lnis = new LocoNetInterfaceScaffold();
|
|
SlotManager slotmanager = new SlotManager(lnis);
|
|
LocoNetSystemConnectionMemo memo = new LocoNetSystemConnectionMemo(lnis,slotmanager);
|
|
LnComponentFactory t = new LnComponentFactory(memo);
|
|
Assert.assertNotNull("exists",t);
|
|
memo.dispose();
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(LnComponentFactoryTest.class);
|
|
|
|
}
|