From dce6a496f9f7e2eb041d98a0cffa49a772896a7b Mon Sep 17 00:00:00 2001 From: JPANZO Date: Sat, 29 Jan 2022 16:42:50 +0100 Subject: [PATCH] Method-Name "quiter" -> "quieter". CDPlayer and CDPlayerTest classes added to project. --- src/main/java/device/CDPlayer.java | 48 ++++++++++++++++++++++++++ src/main/java/device/Device.java | 2 +- src/main/java/device/RadioPlayer.java | 2 +- src/main/java/device/UsbPlayer.java | 2 +- src/test/java/device/CDPlayerTest.java | 44 +++++++++++++++++++++++ 5 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 src/main/java/device/CDPlayer.java create mode 100644 src/test/java/device/CDPlayerTest.java diff --git a/src/main/java/device/CDPlayer.java b/src/main/java/device/CDPlayer.java new file mode 100644 index 0000000..60e42e5 --- /dev/null +++ b/src/main/java/device/CDPlayer.java @@ -0,0 +1,48 @@ +package device; + +public class CDPlayer implements Device { + @Override + public void louder() { + + } + + @Override + public void quieter() { + + } + + @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/main/java/device/Device.java b/src/main/java/device/Device.java index ca361d6..eadfffe 100644 --- a/src/main/java/device/Device.java +++ b/src/main/java/device/Device.java @@ -3,7 +3,7 @@ package device; public interface Device { void louder(); - void quiter(); + void quieter(); int getVolume(); void next(); void prev(); diff --git a/src/main/java/device/RadioPlayer.java b/src/main/java/device/RadioPlayer.java index 07d220b..603453b 100644 --- a/src/main/java/device/RadioPlayer.java +++ b/src/main/java/device/RadioPlayer.java @@ -7,7 +7,7 @@ public class RadioPlayer implements Device { } @Override - public void quiter() { + public void quieter() { } diff --git a/src/main/java/device/UsbPlayer.java b/src/main/java/device/UsbPlayer.java index 6eb3470..4c01207 100644 --- a/src/main/java/device/UsbPlayer.java +++ b/src/main/java/device/UsbPlayer.java @@ -8,7 +8,7 @@ public class UsbPlayer implements Device{ } @Override - public void quiter() { + public void quieter() { } diff --git a/src/test/java/device/CDPlayerTest.java b/src/test/java/device/CDPlayerTest.java new file mode 100644 index 0000000..bddf879 --- /dev/null +++ b/src/test/java/device/CDPlayerTest.java @@ -0,0 +1,44 @@ +package device; + +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.*; + +class CDPlayerTest { + + @Test + void louder() { + } + + @Test + void quieter() { + } + + @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