From 47e397c82c0a5e9a960909b92fe3f588e899d0b2 Mon Sep 17 00:00:00 2001 From: sahar Date: Sat, 29 Jan 2022 16:32:34 +0100 Subject: [PATCH] add the USBDevice class and the USBDeviceTest class to tje project --- src/main/java/device/UsbPlayer.java | 49 +++++++++++++++++++++++++ src/test/java/device/UsbPlayerTest.java | 44 ++++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 src/main/java/device/UsbPlayer.java create mode 100644 src/test/java/device/UsbPlayerTest.java diff --git a/src/main/java/device/UsbPlayer.java b/src/main/java/device/UsbPlayer.java new file mode 100644 index 0000000..6eb3470 --- /dev/null +++ b/src/main/java/device/UsbPlayer.java @@ -0,0 +1,49 @@ +package device; + +public class UsbPlayer implements Device{ + + @Override + public void louder() { + + } + + @Override + public void quiter() { + + } + + @Override + public int getVolume() { + return 0; + } + + @Override + public void next() { + + } + + @Override + public void prev() { + + } + + @Override + public String getInfoText() { + return null; + } + + @Override + public String[] getOptions() { + return new String[0]; + } + + @Override + public void chooseOption(String opt) { + + } + + @Override + public String play() { + return null; + } +} diff --git a/src/test/java/device/UsbPlayerTest.java b/src/test/java/device/UsbPlayerTest.java new file mode 100644 index 0000000..be7d232 --- /dev/null +++ b/src/test/java/device/UsbPlayerTest.java @@ -0,0 +1,44 @@ +package device; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class UsbPlayerTest { + + @Test + void louder() { + } + + @Test + void quiter() { + } + + @Test + void getVolume() { + } + + @Test + void next() { + } + + @Test + void prev() { + } + + @Test + void getInfoText() { + } + + @Test + void getOptions() { + } + + @Test + void chooseOption() { + } + + @Test + void play() { + } +} \ No newline at end of file