45 lines
972 B
Java
45 lines
972 B
Java
package jmri.jmrix.zimo;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class Mx1PowerManagerTest {
|
|
|
|
private Mx1SystemConnectionMemo memo = null;
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
Mx1PowerManager t = new Mx1PowerManager(memo);
|
|
Assert.assertNotNull("exists",t);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
Mx1TrafficController tc = new Mx1TrafficController(){
|
|
@Override
|
|
public boolean status(){
|
|
return true;
|
|
}
|
|
@Override
|
|
public void sendMx1Message(Mx1Message m,Mx1Listener reply) {
|
|
}
|
|
};
|
|
memo = new Mx1SystemConnectionMemo(tc);
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(Mx1PowerManagerTest.class);
|
|
|
|
}
|