46 lines
1.2 KiB
Java
46 lines
1.2 KiB
Java
package jmri.jmrix.loconet.logixng.configurexml;
|
|
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.Assert;
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
* Tests for the ExpressionSlotUsageXml class
|
|
*
|
|
* @author Daniel Bergqvist Copyright 2020
|
|
*/
|
|
public class ExpressionSlotUsageXmlTest {
|
|
|
|
@Test
|
|
public void testCtor() {
|
|
ExpressionSlotUsageXml e = new ExpressionSlotUsageXml();
|
|
Assert.assertNotNull(e);
|
|
}
|
|
|
|
// The minimal setup for log4J
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
JUnitUtil.resetInstanceManager();
|
|
JUnitUtil.resetProfileManager();
|
|
JUnitUtil.initConfigureManager();
|
|
JUnitUtil.initInternalSensorManager();
|
|
JUnitUtil.initInternalTurnoutManager();
|
|
JUnitUtil.initLogixNGManager();
|
|
|
|
// Temporary let the error messages from this test be shown to the user
|
|
// JUnitAppender.end();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.deregisterBlockManagerShutdownTask();
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
|
|
// private static final org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger(ExpressionSlotUsageTest.class);
|
|
|
|
}
|