Browse Source

add the USBDevice class and the USBDeviceTest class to tje project

pull/1/head
sahar 3 years ago
parent
commit
47e397c82c
  1. 49
      src/main/java/device/UsbPlayer.java
  2. 44
      src/test/java/device/UsbPlayerTest.java

49
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;
}
}

44
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() {
}
}
Loading…
Cancel
Save