package jmri.jmrit.beantable; import jmri.util.JUnitAppender; import jmri.util.JUnitUtil; import org.junit.jupiter.api.*; import org.junit.Assert; /** * * @author Paul Bender Copyright (C) 2017 */ public class AudioTablePanelTest { @Test public void testCTor() { // The Table Data Models required to create an AudioTablePanel are // internal classes in the AudioTableAction. AudioTableAction a = new AudioTableAction(); // the getPanel() method of the AudioTableAction calls the // constructor for AudioTablePanel. We need to seperate the // Table Data Model objects from the AudioTableAction to be // able to create this directly. AudioTablePanel t = (AudioTablePanel) a.getPanel(); Assert.assertNotNull("exists",t); } @BeforeEach public void setUp() { JUnitUtil.setUp(); JUnitUtil.initDefaultUserMessagePreferences(); } @AfterEach public void tearDown() { // this created an audio manager, clean that up jmri.InstanceManager.getDefault(jmri.AudioManager.class).cleanup(); JUnitAppender.suppressWarnMessage("Error initialising JOAL"); JUnitAppender.suppressWarnMessage("Error loading OpenAL libraries: Could not initialize class jogamp.openal.ALImpl"); JUnitUtil.tearDown(); } // private static final Logger log = LoggerFactory.getLogger(AudioTablePanelTest.class); }