44 lines
1.1 KiB
Java
44 lines
1.1 KiB
Java
package jmri.jmrix.powerline;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class SerialX10LightTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
SerialTrafficController tc = new SerialTrafficController(){
|
|
@Override
|
|
public void sendSerialMessage(SerialMessage m,SerialListener reply) {
|
|
}
|
|
};
|
|
SerialSystemConnectionMemo memo = new SerialSystemConnectionMemo();
|
|
memo.setTrafficController(tc);
|
|
tc.setAdapterMemo(memo);
|
|
memo.setSerialAddress(new SerialAddress(memo));
|
|
SerialX10Light t = new SerialX10Light("PLA1",tc);
|
|
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(SerialX10LightTest.class);
|
|
|
|
}
|