33 lines
705 B
Java
33 lines
705 B
Java
package jmri.jmrit.ctc;
|
|
|
|
import jmri.util.JUnitAppender;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/*
|
|
* Tests for the CTCException Class
|
|
* @author Dave Sand Copyright (C) 2019
|
|
*/
|
|
public class CTCExceptionTest {
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
CTCException ctcex = new CTCException("Test", "ID", "Param", "Reason");
|
|
ctcex.logWarning();
|
|
Assert.assertNotNull("CTCException Constructor Return", ctcex);
|
|
|
|
JUnitAppender.suppressWarnMessage("Test, IDParam, Reason");
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
jmri.util.JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
jmri.util.JUnitUtil.tearDown();
|
|
}
|
|
}
|