|
1 | 1 | package net.twasi.obsremotejava.test.manual;
|
2 | 2 |
|
3 |
| -import static org.assertj.core.api.AssertionsForClassTypes.assertThat; |
4 |
| -import static org.junit.jupiter.api.Assertions.fail; |
| 3 | +import net.twasi.obsremotejava.requests.GetMute.GetMuteResponse; |
| 4 | +import net.twasi.obsremotejava.test.AbstractObsE2ETest; |
| 5 | +import org.junit.jupiter.api.*; |
5 | 6 |
|
6 | 7 | import java.io.File;
|
7 | 8 | import java.util.HashMap;
|
8 | 9 | import java.util.Map;
|
9 |
| -import net.twasi.obsremotejava.test.AbstractObsE2ETest; |
10 |
| -import org.junit.jupiter.api.AfterAll; |
11 |
| -import org.junit.jupiter.api.AfterEach; |
12 |
| -import org.junit.jupiter.api.BeforeAll; |
13 |
| -import org.junit.jupiter.api.BeforeEach; |
14 |
| -import org.junit.jupiter.api.Test; |
| 10 | + |
| 11 | +import static org.assertj.core.api.AssertionsForClassTypes.assertThat; |
15 | 12 |
|
16 | 13 | /**
|
17 | 14 | * This test should be run manually, following the prompts in the command-line and
|
@@ -170,8 +167,16 @@ void setVolumeAndMute() {
|
170 | 167 | remote.setVolume(SOURCE_MEDIA, 0.50, loggingCallback);
|
171 | 168 | obsShould("Mute the volume");
|
172 | 169 | remote.setMute(SOURCE_MEDIA, true, loggingCallback);
|
| 170 | + remote.getMute(SOURCE_MEDIA, capturingCallback); |
| 171 | + waitReasonably(); |
| 172 | + assertThat(getPreviousResponseAs(GetMuteResponse.class).isMuted()).isTrue(); |
| 173 | + |
173 | 174 | obsShould("Unmute the volume");
|
174 | 175 | remote.setMute(SOURCE_MEDIA, false, loggingCallback);
|
| 176 | + remote.getMute(SOURCE_MEDIA, capturingCallback); |
| 177 | + waitReasonably(); |
| 178 | + assertThat(getPreviousResponseAs(GetMuteResponse.class).isMuted()).isFalse(); |
| 179 | + |
175 | 180 | obsShould("Set the volume to 100%");
|
176 | 181 | remote.setVolume(SOURCE_MEDIA, 1.00, loggingCallback);
|
177 | 182 |
|
|
0 commit comments