aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java/com/jsyn/midi
diff options
context:
space:
mode:
authorPhil Burk <[email protected]>2021-09-06 14:19:13 -0700
committerPhil Burk <[email protected]>2021-09-06 14:20:48 -0700
commitedfc73a107a368ec084eb364a62db3b580987a4b (patch)
tree44feb1494b4a176b8c484c6644deb9d5813b9b2c /src/test/java/com/jsyn/midi
parentd33fb2c959fff6471dc48434b37b01ac98874e82 (diff)
Remove SLF4J from tests and gradle
It was an unnecessary dependency.
Diffstat (limited to 'src/test/java/com/jsyn/midi')
-rw-r--r--src/test/java/com/jsyn/midi/TestMidiLoop.java12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/test/java/com/jsyn/midi/TestMidiLoop.java b/src/test/java/com/jsyn/midi/TestMidiLoop.java
index fa7ba2c..a0c69df 100644
--- a/src/test/java/com/jsyn/midi/TestMidiLoop.java
+++ b/src/test/java/com/jsyn/midi/TestMidiLoop.java
@@ -23,8 +23,6 @@ import javax.sound.midi.Receiver;
import com.jsyn.devices.javasound.MidiDeviceTools;
import org.junit.jupiter.api.Test;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
/**
* Connect a USB MIDI Keyboard to the internal MIDI Synthesizer using JavaSound.
@@ -33,8 +31,6 @@ import org.slf4j.LoggerFactory;
*/
public class TestMidiLoop {
- private static final Logger LOGGER = LoggerFactory.getLogger(TestMidiLoop.class);
-
@Test
private void midiLoop() {
try {
@@ -56,7 +52,7 @@ public class TestMidiLoop {
@Override
public void send(MidiMessage message, long timeStamp) {
byte[] bytes = message.getMessage();
- LOGGER.debug("Got " + bytes.length + " bytes.");
+ System.out.println("Got " + bytes.length + " bytes.");
}
}
@@ -72,13 +68,13 @@ public class TestMidiLoop {
// Put the receiver in the transmitter.
// This gives fairly low latency playing.
keyboard.getTransmitter().setReceiver(receiver);
- LOGGER.debug("Play MIDI keyboard: " + keyboard.getDeviceInfo().getDescription());
+ System.out.println("Play MIDI keyboard: " + keyboard.getDeviceInfo().getDescription());
result = 0;
Thread.sleep(4000);
- LOGGER.debug("Close the keyboard. It may not work after this according to the docs!");
+ System.out.println("Close the keyboard. It may not work after this according to the docs!");
keyboard.close();
} else {
- LOGGER.debug("Could not find a keyboard.");
+ System.out.println("Could not find a keyboard.");
}
return result;
}