Initialisation depot

This commit is contained in:
Serge NOEL
2026-06-17 14:00:51 +02:00
commit efdf1683af
33190 changed files with 5907629 additions and 0 deletions
@@ -0,0 +1,25 @@
package jmri.jmrix.maple.serialmon;
import org.junit.Assert;
import org.junit.jupiter.api.*;
/**
* Tests for the Bundle class
*
* @author Bob Jacobsen Copyright (C) 2012
*/
public class BundleTest {
@Test public void testGoodKeys() {
Assert.assertEquals("(none)", Bundle.getMessage("none"));
Assert.assertEquals("No locomotive detected (301);", Bundle.getMessage("NoLocoDetected"));
Assert.assertEquals("Turnout", Bundle.getMessage("BeanNameTurnout"));
}
@Test
public void testBadKey() {
Assert.assertThrows(java.util.MissingResourceException.class, () -> Bundle.getMessage("FFFFFTTTTTTT"));
}
}
@@ -0,0 +1,41 @@
package jmri.jmrix.maple.serialmon;
import java.awt.GraphicsEnvironment;
import jmri.util.JUnitUtil;
import org.junit.Assert;
import org.junit.jupiter.api.*;
import org.junit.Assume;
import jmri.jmrix.maple.MapleSystemConnectionMemo;
/**
* Test simple functioning of SerialMonAction
*
* @author Paul Bender Copyright (C) 2016
*/
public class SerialMonActionTest {
@Test
public void testStringCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
SerialMonAction action = new SerialMonAction("Maple test Action",new MapleSystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
@Test
public void testCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
SerialMonAction action = new SerialMonAction(new MapleSystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
@BeforeEach
public void setUp() {
JUnitUtil.setUp();
}
@AfterEach
public void tearDown() { JUnitUtil.tearDown(); }
}
@@ -0,0 +1,36 @@
package jmri.jmrix.maple.serialmon;
import java.awt.GraphicsEnvironment;
import jmri.util.JUnitUtil;
import org.junit.Assert;
import org.junit.jupiter.api.*;
import org.junit.Assume;
import jmri.jmrix.maple.MapleSystemConnectionMemo;
/**
* Test simple functioning of SerialMonFrame
*
* @author Paul Bender Copyright (C) 2016
*/
public class SerialMonFrameTest {
@Test
public void testMemoCtor() {
Assume.assumeFalse(GraphicsEnvironment.isHeadless());
SerialMonFrame action = new SerialMonFrame(new MapleSystemConnectionMemo());
Assert.assertNotNull("exists", action);
}
@BeforeEach
public void setUp() {
JUnitUtil.setUp();
}
@AfterEach
public void tearDown() {
JUnitUtil.tearDown();
}
}