@ -0,0 +1,3 @@
CD=device.CdPlayer
Radio=device.RadioPlayer
USB=device.UsbPlayer
@ -1,10 +0,0 @@
public class Dog {
private String name;
private Float weight;
public Dog(String name, double weight) {
}
@ -0,0 +1,14 @@
package device;
public interface Device {
void louder();
void quiter();
int getVolume();
void next();
void prev();
String getInfoText();
String[] getOptions();
void chooseOption(String opt);
String play();
@ -0,0 +1,48 @@
public class RadioPlayer implements Device {
@Override
public void louder() {
public void quiter() {
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() {
@ -1,15 +0,0 @@
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.*;
class DogTest {
Dog fido = new Dog("Fido", 5.25);
Dog fidosClone = new Dog("Fido", 5.25);
@Test
void test() {
assertThat(fido).isEqualToComparingFieldByFieldRecursively(fidosClone);
@ -0,0 +1,44 @@
import static org.junit.jupiter.api.Assertions.*;
class RadioPlayerTest {
void louder() {
void quiter() {
void getVolume() {
void next() {
void prev() {
void getInfoText() {
void getOptions() {
void chooseOption() {
void play() {