|
@ -1,17 +1,39 @@ |
|
|
package device; |
|
|
package device; |
|
|
|
|
|
|
|
|
|
|
|
import org.junit.Before; |
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
|
class RadioPlayerTest { |
|
|
class RadioPlayerTest { |
|
|
|
|
|
|
|
|
|
|
|
RadioPlayer rp = new RadioPlayer(); |
|
|
|
|
|
|
|
|
|
|
|
@Before |
|
|
|
|
|
void setup() |
|
|
|
|
|
{ |
|
|
|
|
|
rp.setLautstaerke(0); |
|
|
|
|
|
} |
|
|
@Test |
|
|
@Test |
|
|
void louder() { |
|
|
void louder() { |
|
|
|
|
|
rp.louder(); |
|
|
|
|
|
assertThat(rp.getLautstaerke()).isEqualTo(1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Before |
|
|
|
|
|
void setup1() |
|
|
|
|
|
{ |
|
|
|
|
|
rp.setLautstaerke(100); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void quiter() { |
|
|
|
|
|
|
|
|
void loudermax() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
/* |
|
|
|
|
|
@Test |
|
|
|
|
|
void quieter() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
@ -41,4 +63,6 @@ class RadioPlayerTest { |
|
|
@Test |
|
|
@Test |
|
|
void play() { |
|
|
void play() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
} |
|
|
} |