40 lines
1.1 KiB
Java
40 lines
1.1 KiB
Java
package jmri.jmrix.ecos.swing.preferences;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
* Test simple functioning of PreferencesPane
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
*/
|
|
public class PreferencesPaneTest {
|
|
|
|
jmri.jmrix.ecos.EcosSystemConnectionMemo memo = null;
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
PreferencesPane action = new PreferencesPane(new jmri.jmrix.ecos.EcosPreferences(memo));
|
|
Assert.assertNotNull("exists", action);
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
JUnitUtil.resetProfileManager();
|
|
JUnitUtil.initRosterConfigManager();
|
|
JUnitUtil.initDefaultUserMessagePreferences();
|
|
memo = new jmri.jmrix.ecos.EcosSystemConnectionMemo();
|
|
|
|
jmri.InstanceManager.store(memo, jmri.jmrix.ecos.EcosSystemConnectionMemo.class);
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.clearShutDownManager(); // put in place because AbstractMRTrafficController implementing subclass was not terminated properly
|
|
JUnitUtil.tearDown();
|
|
}
|
|
}
|