41 lines
989 B
Java
41 lines
989 B
Java
package apps;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class SampleMinimalProgramTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
// the class under test requires a configuration file name as a
|
|
// parameter, but the configuration is ignored.
|
|
String[] args = {"DecoderProConfig3.xml"};
|
|
SampleMinimalProgram t = new SampleMinimalProgram(args){
|
|
// actual configuration is performed in the codeConfig method,
|
|
// so we provide a dummy for testing.
|
|
@Override
|
|
protected void codeConfig(String[] args){
|
|
}
|
|
};
|
|
Assertions.assertNotNull( t, "exists");
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(SampleMinimalProgramTest.class);
|
|
|
|
}
|