79 lines
2.0 KiB
Java
79 lines
2.0 KiB
Java
package jmri.jmrit.beantable;
|
|
|
|
import jmri.SignalMast;
|
|
import jmri.util.JUnitUtil;
|
|
import jmri.util.junit.annotations.*;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class SignalMastTableActionTest extends AbstractTableActionBase<SignalMast> {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
Assert.assertNotNull("exists", a);
|
|
}
|
|
|
|
@Override
|
|
public String getTableFrameName() {
|
|
return Bundle.getMessage("TitleSignalMastTable");
|
|
}
|
|
|
|
@Override
|
|
@Test
|
|
public void testGetClassDescription() {
|
|
Assert.assertEquals("SignalMast Table Action class description", "Signal Mast Table", a.getClassDescription());
|
|
}
|
|
|
|
/**
|
|
* Check the return value of includeAddButton. The table generated by this
|
|
* action includes an Add Button.
|
|
*/
|
|
@Override
|
|
@Test
|
|
public void testIncludeAddButton() {
|
|
Assert.assertTrue("Default include add button", a.includeAddButton());
|
|
}
|
|
|
|
@Override
|
|
public String getAddFrameName(){
|
|
return Bundle.getMessage("TitleAddSignalMast");
|
|
}
|
|
|
|
@Test
|
|
@Disabled("Signal Mast create frame does not have a hardware address")
|
|
@ToDo("Re-write parent class test to use the right name")
|
|
@Override
|
|
public void testAddThroughDialog() {
|
|
}
|
|
|
|
@Test
|
|
@Disabled("Signal Mast create frame does not have a hardware address")
|
|
@ToDo("Re-write parent class test to use the right name")
|
|
@Override
|
|
public void testEditButton() {
|
|
}
|
|
|
|
@Override
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
jmri.util.JUnitUtil.resetProfileManager();
|
|
helpTarget = "package.jmri.jmrit.beantable.SignalMastTable";
|
|
a = new SignalMastTableAction();
|
|
}
|
|
|
|
@Override
|
|
@AfterEach
|
|
public void tearDown() {
|
|
a = null;
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(SignalMastTableActionTest.class);
|
|
}
|