Skip to content

Commit

Permalink
fix checkstyle - missing javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
c-eg committed Aug 10, 2024
1 parent a9e188c commit 740281d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@
import static com.github.tomakehurst.wiremock.client.WireMock.stubFor;
import static org.junit.jupiter.api.Assertions.assertNotNull;

/**
* Tests for {@link Watch2GetherApi}.
*/
@WireMockTest
public class Watch2GetherApiTest {
/**
* Tests {@link Watch2GetherApi#createRoom(String, String, Integer)} with an expected result.
*/
@Test
public void testCreateRoom(WireMockRuntimeInfo wmRuntimeInfo) throws W2GException, IOException {
String responseBody = TestUtils.readTestFile("api_responses/create_room.json");
Expand All @@ -29,6 +35,9 @@ public void testCreateRoom(WireMockRuntimeInfo wmRuntimeInfo) throws W2GExceptio
assertNotNull(createRoomResponse);
}

/**
* Tests {@link Watch2GetherApi#shareItem(String, String)} with an expected result.
*/
@Test
public void testShareItem(WireMockRuntimeInfo wmRuntimeInfo) throws W2GException {
String streamKey = "streamKey";
Expand All @@ -38,6 +47,9 @@ public void testShareItem(WireMockRuntimeInfo wmRuntimeInfo) throws W2GException
api.shareItem(streamKey, "https://www.youtube.com/watch?v=dQw4w9WgXcQ");
}

/**
* Tests {@link Watch2GetherApi#addToPlaylist(String, List)} with an expected result.
*/
@Test
public void testAddToPlaylist(WireMockRuntimeInfo wmRuntimeInfo) throws W2GException {
String streamKey = "streamKey";
Expand Down

0 comments on commit 740281d

Please sign in to comment.