Files
JIMRI/java/test/jmri/jmrit/operations/locations/schedules/tools/ScheduleCopyActionTest.java
T
2026-06-17 14:00:51 +02:00

42 lines
1.1 KiB
Java

package jmri.jmrit.operations.locations.schedules.tools;
import java.awt.GraphicsEnvironment;
import java.awt.event.ActionEvent;
import org.junit.Assert;
import org.junit.Assume;
import org.junit.jupiter.api.Test;
import jmri.jmrit.operations.OperationsTestCase;
import jmri.util.JUnitUtil;
import jmri.util.JmriJFrame;
/**
*
* @author Paul Bender Copyright (C) 2017
*/
public class ScheduleCopyActionTest extends OperationsTestCase {
@Test
public void testCTor() {
ScheduleCopyAction t = new ScheduleCopyAction();
Assert.assertNotNull("exists",t);
}
@Test
public void testAction() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
ScheduleCopyAction a = new ScheduleCopyAction();
Assert.assertNotNull("exists", a);
a.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, null));
JmriJFrame f = JmriJFrame.getFrame(Bundle.getMessage("MenuItemCopySchedule"));
Assert.assertNotNull("frame exists", f);
JUnitUtil.dispose(f);
}
// private static final Logger log = LoggerFactory.getLogger(ScheduleCopyActionTest.class);
}