40 lines
1.0 KiB
Java
40 lines
1.0 KiB
Java
package jmri.jmrix.ecos;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
* JUnit tests for the EcosPortController class.
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
*/
|
|
public class EcosPortControllerTest extends jmri.jmrix.AbstractNetworkPortControllerTestBase {
|
|
|
|
@Override
|
|
@BeforeEach
|
|
public void setUp(){
|
|
JUnitUtil.setUp();
|
|
JUnitUtil.resetProfileManager();
|
|
JUnitUtil.initRosterConfigManager();
|
|
JUnitUtil.initDefaultUserMessagePreferences();
|
|
EcosSystemConnectionMemo memo = new EcosSystemConnectionMemo();
|
|
apc = new EcosPortController(memo){
|
|
@Override
|
|
public boolean status(){
|
|
return true;
|
|
}
|
|
@Override
|
|
public void configure(){
|
|
}
|
|
};
|
|
}
|
|
|
|
@Override
|
|
@AfterEach
|
|
public void tearDown(){
|
|
JUnitUtil.clearShutDownManager(); // put in place because AbstractMRTrafficController implementing subclass was not terminated properly
|
|
JUnitUtil.tearDown();
|
|
}
|
|
}
|