39 lines
777 B
Java
39 lines
777 B
Java
package jmri.jmrix;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
* Tests for NetworkConfigException class.
|
|
*
|
|
* @author Paul Bender Copyright (C) 2016
|
|
**/
|
|
|
|
public class NetworkConfigExceptionTest {
|
|
|
|
@Test
|
|
public void testCtor(){
|
|
Assert.assertNotNull("NetworkConfigException constructor",new NetworkConfigException());
|
|
}
|
|
|
|
@Test
|
|
public void testStringConstructor(){
|
|
Assert.assertNotNull("NetworkConfigException string constructor",new NetworkConfigException("test exception"));
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
|
|
jmri.util.JUnitUtil.initDefaultUserMessagePreferences();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown(){
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
}
|