From 740281d114af633dff34ca4f65fece4c30b7237b Mon Sep 17 00:00:00 2001 From: Conor Egan <68134729+c-eg@users.noreply.github.com> Date: Sat, 10 Aug 2024 19:08:14 +0100 Subject: [PATCH] fix checkstyle - missing javadocs --- .../watch2getherapi/Watch2GetherApiTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/uk/co/conoregan/watch2getherapi/Watch2GetherApiTest.java b/src/test/java/uk/co/conoregan/watch2getherapi/Watch2GetherApiTest.java index a8de4d8..c9a93bc 100644 --- a/src/test/java/uk/co/conoregan/watch2getherapi/Watch2GetherApiTest.java +++ b/src/test/java/uk/co/conoregan/watch2getherapi/Watch2GetherApiTest.java @@ -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"); @@ -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"; @@ -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";