Files
JIMRI/java/test/jmri/jmrix/mrc/MrcMessageExceptionTest.java
T
2026-06-17 14:00:51 +02:00

38 lines
840 B
Java

package jmri.jmrix.mrc;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import jmri.util.JUnitUtil;
import org.junit.jupiter.api.*;
/**
* Tests for MrcMessageException class.
*
* @author Paul Bender Copyright (C) 2016
**/
public class MrcMessageExceptionTest {
@Test
public void testMrcMessageExceptionConstructor(){
assertNotNull( new MrcMessageException(), "MrcMessageException constructor");
}
@Test
public void testMrcMessageExceptionStringConstructor(){
assertNotNull( new MrcMessageException("test exception"), "MrcMessageException string constructor");
}
@BeforeEach
public void setUp() {
JUnitUtil.setUp();
JUnitUtil.initDefaultUserMessagePreferences();
}
@AfterEach
public void tearDown(){
JUnitUtil.tearDown();
}
}