46 lines
1.0 KiB
Java
46 lines
1.0 KiB
Java
package jmri.jmrix.nce;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class NceThrottleManagerTest extends jmri.managers.AbstractThrottleManagerTestBase {
|
|
|
|
private NceTrafficControlScaffold tcis = null;
|
|
private NceSystemConnectionMemo memo = null;
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
Assert.assertNotNull("exists", tm);
|
|
}
|
|
|
|
@BeforeEach
|
|
@Override
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
tcis = new NceTrafficControlScaffold();
|
|
memo = new NceSystemConnectionMemo();
|
|
memo.setNceTrafficController(tcis);
|
|
tm = new NceThrottleManager(memo);
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
tm.dispose();
|
|
tm = null;
|
|
memo.dispose();
|
|
memo = null;
|
|
tcis.terminateThreads();
|
|
tcis = null;
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(NceThrottleManagerTest.class);
|
|
|
|
}
|