40 lines
997 B
Java
40 lines
997 B
Java
package jmri.jmrit.vsdecoder;
|
|
|
|
import jmri.*;
|
|
import jmri.util.JUnitAppender;
|
|
import jmri.util.JUnitUtil;
|
|
|
|
import org.junit.jupiter.api.*;
|
|
|
|
/**
|
|
*
|
|
* @author Paul Bender Copyright (C) 2017
|
|
*/
|
|
public class Diesel3SoundTest {
|
|
|
|
@Test
|
|
public void testCTor() {
|
|
Diesel3Sound t = new Diesel3Sound("test");
|
|
Assertions.assertNotNull(t, "exists");
|
|
|
|
// this created an audio manager, clean that up
|
|
InstanceManager.getDefault(jmri.AudioManager.class).cleanup();
|
|
}
|
|
|
|
@BeforeEach
|
|
public void setUp() {
|
|
JUnitUtil.setUp();
|
|
}
|
|
|
|
@AfterEach
|
|
public void tearDown() {
|
|
JUnitUtil.removeMatchingThreads("VSDecoderManagerThread");
|
|
JUnitUtil.deregisterBlockManagerShutdownTask();
|
|
JUnitAppender.suppressWarnMessage("Error loading OpenAL libraries: Could not initialize class jogamp.openal.ALImpl");
|
|
JUnitUtil.tearDown();
|
|
}
|
|
|
|
// private static final Logger log = LoggerFactory.getLogger(Diesel3SoundTest.class);
|
|
|
|
}
|