47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package jmri.jmrix.can.cbus.swing.modules;
|
|
|
|
import jmri.jmrix.can.CanSystemConnectionMemo;
|
|
import jmri.jmrix.can.cbus.node.*;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;
|
|
|
|
/**
|
|
* Test simple functioning of CbusNodeInfoPane
|
|
*
|
|
* @author Andrew Crosland Copyright (C) 2021
|
|
*/
|
|
@DisabledIfSystemProperty(named ="java.awt.headless", matches ="true")
|
|
public class UnknownPaneProviderTest {
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
UnknownPaneProvider t = new UnknownPaneProvider();
|
|
Assert.assertNotNull("exists",t);
|
|
}
|
|
|
|
private CanSystemConnectionMemo memo = null;
|
|
private CbusNodeNVTableDataModel model = null;
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
memo = new CanSystemConnectionMemo();
|
|
model = new CbusNodeNVTableDataModel(memo, 3,CbusNodeTableDataModel.MAX_COLUMN);
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
Assertions.assertNotNull(model);
|
|
model.dispose();
|
|
model = null;
|
|
Assertions.assertNotNull(memo);
|
|
memo.dispose();
|
|
memo = null;
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
}
|