45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package jmri.jmrix.oaktree;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class SerialLightTest {
|
|
|
|
private OakTreeSystemConnectionMemo _memo = null;
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
SerialLight t = new SerialLight("OL1", _memo);
|
|
Assert.assertNotNull("exists",t);
|
|
}
|
|
|
|
@Test
|
|
public void testCTor2() {
|
|
SerialLight t2 = new SerialLight("OL2", "L2", _memo);
|
|
Assert.assertNotNull("exists",t2);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
// prepare an interface
|
|
_memo = new OakTreeSystemConnectionMemo("O", "Oaktree"); }
|
|
|
|
@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(SerialLightTest.class);
|
|
|
|
}
|