45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package jmri.jmrix.can.cbus.eventtable;
|
|
|
|
import jmri.jmrix.can.CanSystemConnectionMemo;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
* @author Steve Young Copyright (C) 2020
|
|
*/
|
|
public class CbusBasicEventTableModelTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
|
|
CbusBasicEventTableModel t = new CbusBasicEventTableModel(memo);
|
|
Assertions.assertNotNull(t);
|
|
|
|
}
|
|
|
|
private CanSystemConnectionMemo memo = null;
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
memo = new CanSystemConnectionMemo();
|
|
memo.setProtocol(jmri.jmrix.can.CanConfigurationManager.SPROGCBUS);
|
|
memo.configureManagers();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
Assertions.assertNotNull(memo);
|
|
memo.dispose();
|
|
JUnitUtil.deregisterBlockManagerShutdownTask();
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(CbusBasicEventTableModelTest.class);
|
|
|
|
}
|