Skip to content

Commit d590776

Browse files
committed
tests: Added getMute
1 parent c78f7ee commit d590776

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

src/integrationTest/java/net/twasi/obsremotejava/test/manual/ObsRemoteE2eObservationIT.java

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
package net.twasi.obsremotejava.test.manual;
22

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.*;
56

67
import java.io.File;
78
import java.util.HashMap;
89
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;
1512

1613
/**
1714
* This test should be run manually, following the prompts in the command-line and
@@ -170,8 +167,16 @@ void setVolumeAndMute() {
170167
remote.setVolume(SOURCE_MEDIA, 0.50, loggingCallback);
171168
obsShould("Mute the volume");
172169
remote.setMute(SOURCE_MEDIA, true, loggingCallback);
170+
remote.getMute(SOURCE_MEDIA, capturingCallback);
171+
waitReasonably();
172+
assertThat(getPreviousResponseAs(GetMuteResponse.class).isMuted()).isTrue();
173+
173174
obsShould("Unmute the volume");
174175
remote.setMute(SOURCE_MEDIA, false, loggingCallback);
176+
remote.getMute(SOURCE_MEDIA, capturingCallback);
177+
waitReasonably();
178+
assertThat(getPreviousResponseAs(GetMuteResponse.class).isMuted()).isFalse();
179+
175180
obsShould("Set the volume to 100%");
176181
remote.setVolume(SOURCE_MEDIA, 1.00, loggingCallback);
177182

0 commit comments

Comments
 (0)