@ -0,0 +1,48 @@
package device;
public class CDPlayer implements Device {
@Override
public void louder() {
}
public void quieter() {
public int getVolume() {
return 0;
public void next() {
public void prev() {
public String getInfoText() {
return null;
public String[] getOptions() {
return new String[0];
public void chooseOption(String opt) {
public String play() {
@ -3,7 +3,7 @@ package device;
public interface Device {
void louder();
void quiter();
void quieter();
int getVolume();
void next();
void prev();
@ -7,7 +7,7 @@ public class RadioPlayer implements Device {
public void quiter() {
@ -8,7 +8,7 @@ public class UsbPlayer implements Device{
@ -0,0 +1,44 @@
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class CDPlayerTest {
@Test
void louder() {
void quieter() {
void getVolume() {
void next() {
void prev() {
void getInfoText() {
void getOptions() {
void chooseOption() {
void play() {