package jmri.jmrix.loconet.logixng.swing; import jmri.jmrix.loconet.logixng.ActionClearSlots; import jmri.util.JUnitUtil; import org.junit.Assert; import org.junit.jupiter.api.*; /** * Tests for the ExpressionSlotUsageSwing class * * @author Daniel Bergqvist Copyright 2020 */ public class ActionClearSlotsSwingTest { @Test public void testCtor() { ActionClearSlotsSwing e = new ActionClearSlotsSwing(); Assert.assertNotNull(e); } @Test public void testName() { // Test that swing class has same name as parent class ActionClearSlots e = new ActionClearSlots("IQDA1", null, null); ActionClearSlotsSwing es = new ActionClearSlotsSwing(); Assert.assertEquals(e.getShortDescription(), es.toString()); } // 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(ExpressionSlotUsageSwingTest.class); }