39 lines
1.0 KiB
Java
39 lines
1.0 KiB
Java
package jmri.jmrix.dccpp.configurexml;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
import jmri.jmrix.dccpp.DCCppSystemConnectionMemo;
|
|
import jmri.jmrix.dccpp.DCCppStreamConnectionConfig;
|
|
|
|
/**
|
|
* Tests for the DCCppStreamConnectionConfigXml class.
|
|
*
|
|
* @author Paul Bender Copyright (C) 2019
|
|
*/
|
|
public class DCCppStreamConnectionConfigXmlTest extends jmri.jmrix.configurexml.AbstractStreamConnectionConfigXmlTestBase {
|
|
|
|
@BeforeEach
|
|
@Override
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
xmlAdapter = new DCCppStreamConnectionConfigXml();
|
|
cc = new DCCppStreamConnectionConfig();
|
|
}
|
|
|
|
@AfterEach
|
|
@Override
|
|
public void tearDown() {
|
|
// if we've started a traffic controller, dispose of it
|
|
if (cc.getAdapter() != null) {
|
|
if (cc.getAdapter().getSystemConnectionMemo() != null) {
|
|
((DCCppSystemConnectionMemo)cc.getAdapter().getSystemConnectionMemo()).dispose();
|
|
}
|
|
}
|
|
xmlAdapter = null;
|
|
cc = null;
|
|
JUnitUtil.tearDown();
|
|
}
|
|
}
|