45 lines
1.0 KiB
Java
45 lines
1.0 KiB
Java
package jmri.jmrit.beantable.oblock;
|
|
|
|
import jmri.jmrit.logix.OBlock;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
import java.awt.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
* @author Egbert Broerse Copyright (C) 2020
|
|
*/
|
|
public class BlockPathTableModelTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
BlockPathTableModel bptm = new BlockPathTableModel();
|
|
Assertions.assertNotNull(bptm, "BP model exists");
|
|
}
|
|
|
|
@Test
|
|
public void testTfCTor() {
|
|
Assumptions.assumeFalse(GraphicsEnvironment.isHeadless());
|
|
OBlock ob = new OBlock("OB1");
|
|
TableFrames tf = new TableFrames();
|
|
BlockPathTableModel bptm = new BlockPathTableModel(ob, tf);
|
|
Assertions.assertNotNull(bptm, "TF BP model exists");
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(BlockPathTableModelTest.class);
|
|
|
|
}
|