From edfc73a107a368ec084eb364a62db3b580987a4b Mon Sep 17 00:00:00 2001 From: Phil Burk Date: Mon, 6 Sep 2021 14:19:13 -0700 Subject: Remove SLF4J from tests and gradle It was an unnecessary dependency. --- src/test/java/com/jsyn/midi/TestMidiLoop.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/test/java/com/jsyn/midi/TestMidiLoop.java') 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; } -- cgit v1.2.3