Files
2026-06-17 14:00:51 +02:00

62 lines
1.7 KiB
Java

package jmri.jmrit.operations.trains.excel;
import org.junit.Assert;
import org.junit.jupiter.api.*;
import jmri.jmrit.operations.OperationsTestCase;
import jmri.util.JUnitOperationsUtil;
/**
*
* @author Paul Bender Copyright (C) 2017
*/
public class TrainCustomManifestTest extends OperationsTestCase {
@Test
public void testCTor() {
TrainCustomManifest t = new TrainCustomManifest();
Assert.assertNotNull("exists",t);
}
@Test
public void testFileExists() {
TrainCustomManifest t = new TrainCustomManifest();
Assert.assertFalse("file should not exist", t.doesCommonFileExist());
JUnitOperationsUtil.checkOperationsShutDownTask();
}
@Test
public void testCheckProcessReady() {
TrainCustomManifest t = new TrainCustomManifest();
Assert.assertTrue("should be ready", t.checkProcessReady());
}
@Test
public void testAddCvsFile() {
TrainCustomManifest t = new TrainCustomManifest();
Assert.assertFalse("null file", t.addCsvFile(null));
}
@Test
public void testWaitForProcessToComplete() {
TrainCustomManifest t = new TrainCustomManifest();
try {
Assert.assertTrue("no process", t.waitForProcessToComplete());
} catch (InterruptedException e) {
Assert.fail("Unexpected exception");
}
}
@Test
public void testProcess() {
TrainCustomManifest t = new TrainCustomManifest();
Assert.assertFalse("should return false", t.process());
JUnitOperationsUtil.checkOperationsShutDownTask();
}
// private static final Logger log = LoggerFactory.getLogger(TrainCustomManifestTest.class);
}