How to use anyMap method of org.mockito.ArgumentMatchers class

Best Mockito code snippet using org.mockito.ArgumentMatchers.anyMap

Source:SpotifyUserLibraryClientImplTest.java Github

copy

Full Screen

...27import rocks.metaldetector.support.exceptions.ExternalServiceException;28import java.util.Map;29import java.util.stream.Stream;30import static org.mockito.ArgumentMatchers.any;31import static org.mockito.ArgumentMatchers.anyMap;32import static org.mockito.ArgumentMatchers.eq;33import static org.mockito.Mockito.doReturn;34import static org.mockito.Mockito.reset;35import static org.mockito.Mockito.verify;36import static org.springframework.http.HttpMethod.GET;37import static rocks.metaldetector.spotify.client.SpotifyUserLibraryClientImpl.FOLLOWED_ARTISTS_FIRST_PAGE_ENDPOINT;38import static rocks.metaldetector.spotify.client.SpotifyUserLibraryClientImpl.LIMIT;39import static rocks.metaldetector.spotify.client.SpotifyUserLibraryClientImpl.LIMIT_PARAMETER_NAME;40import static rocks.metaldetector.spotify.client.SpotifyUserLibraryClientImpl.MY_ALBUMS_ENDPOINT;41import static rocks.metaldetector.spotify.client.SpotifyUserLibraryClientImpl.OFFSET_PARAMETER_NAME;42@ExtendWith(MockitoExtension.class)43class SpotifyUserLibraryClientImplTest implements WithAssertions {44 @Mock45 private RestOperations restTemplate;46 @Mock47 private SpotifyProperties spotifyProperties;48 private SpotifyUserLibraryClientImpl underTest;49 @Captor50 private ArgumentCaptor<HttpEntity<Object>> httpEntityCaptor;51 @Captor52 private ArgumentCaptor<Map<String, Object>> urlParameterCaptor;53 @BeforeEach54 void setup() {55 underTest = new SpotifyUserLibraryClientImpl(restTemplate, spotifyProperties);56 }57 @AfterEach58 void tearDown() {59 reset(restTemplate, spotifyProperties);60 }61 @DisplayName("Test for fetching liked albums")62 @TestInstance(TestInstance.Lifecycle.PER_CLASS)63 @Nested64 class FetchAlbumsTest {65 @Test66 @DisplayName("correct url is called")67 void test_correct_url_called() {68 // given69 var baseUrl = "url";70 doReturn(baseUrl).when(spotifyProperties).getRestBaseUrl();71 doReturn(ResponseEntity.ok(new SpotifySavedAlbumsPage())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());72 // when73 underTest.fetchLikedAlbums(666);74 // then75 verify(restTemplate).exchange(eq(baseUrl + MY_ALBUMS_ENDPOINT), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());76 }77 @Test78 @DisplayName("spotifyProperties are called to get base url")79 void test_spotify_properties_called() {80 // given81 doReturn(ResponseEntity.ok(new SpotifySavedAlbumsPage())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());82 // when83 underTest.fetchLikedAlbums(666);84 // then85 verify(spotifyProperties).getRestBaseUrl();86 }87 @Test88 @DisplayName("get call is made")89 void test_get_call_made() {90 // given91 doReturn(ResponseEntity.ok(new SpotifySavedAlbumsPage())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());92 // when93 underTest.fetchLikedAlbums(666);94 // then95 verify(restTemplate).exchange(any(), eq(GET), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());96 }97 @Test98 @DisplayName("correct response type is requested")99 void test_correct_response_type() {100 // given101 doReturn(ResponseEntity.ok(new SpotifySavedAlbumsPage())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());102 // when103 underTest.fetchLikedAlbums(666);104 // then105 verify(restTemplate).exchange(any(), any(), any(), eq(SpotifySavedAlbumsPage.class), anyMap());106 }107 @Test108 @DisplayName("url parameters are set")109 void test_url_parameters() {110 // given111 var offset = 666;112 doReturn(ResponseEntity.ok(new SpotifySavedAlbumsPage())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());113 // when114 underTest.fetchLikedAlbums(offset);115 // then116 verify(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), urlParameterCaptor.capture());117 Map<String, Object> urlParameter = urlParameterCaptor.getValue();118 assertThat(urlParameter.get(LIMIT_PARAMETER_NAME)).isEqualTo(LIMIT);119 assertThat(urlParameter.get(OFFSET_PARAMETER_NAME)).isEqualTo(offset);120 }121 @Test122 @DisplayName("ExternalStatusException is thrown if response body is null")123 void test_response_body_null() {124 // given125 doReturn(ResponseEntity.ok(null)).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());126 // when127 Throwable throwable = catchThrowable(() -> underTest.fetchLikedAlbums(666));128 // then129 assertThat(throwable).isInstanceOf(ExternalServiceException.class);130 }131 @ParameterizedTest(name = "If the status is {0}, an ExternalServiceException is thrown")132 @MethodSource("httpStatusCodeProvider")133 @DisplayName("If the status code is not OK an ExternalServiceException is thrown")134 void test_status_code_not_ok(HttpStatus httpStatus) {135 // given136 doReturn(ResponseEntity.status(httpStatus).body(new SpotifySavedAlbumsPage())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());137 Throwable throwable = catchThrowable(() -> underTest.fetchLikedAlbums(666));138 // then139 assertThat(throwable).isInstanceOf(ExternalServiceException.class);140 }141 @Test142 @DisplayName("result is returned")143 void test_result_returned() {144 // given145 var expectedResult = new SpotifySavedAlbumsPage();146 doReturn(ResponseEntity.ok(expectedResult)).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());147 // when148 var result = underTest.fetchLikedAlbums(666);149 // then150 assertThat(result).isEqualTo(expectedResult);151 }152 private Stream<Arguments> httpStatusCodeProvider() {153 return Stream.of(HttpStatus.values()).filter(status -> !status.is2xxSuccessful()).map(Arguments::of);154 }155 }156 @DisplayName("Test for fetching followed artists")157 @TestInstance(TestInstance.Lifecycle.PER_CLASS)158 @Nested159 class FetchArtistsTest {160 @Test161 @DisplayName("should call first page endpoint if parameter for nextPage is null")162 void should_call_first_page_endpoint() {163 // given164 var baseUrl = "url";165 doReturn(baseUrl).when(spotifyProperties).getRestBaseUrl();166 doReturn(ResponseEntity.ok(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());167 // when168 underTest.fetchFollowedArtists(null);169 // then170 verify(restTemplate).exchange(eq(baseUrl + FOLLOWED_ARTISTS_FIRST_PAGE_ENDPOINT), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());171 }172 @Test173 @DisplayName("should call nextPage endpoint if parameter for nextPage is not null")174 void should_call_next_page() {175 // given176 var nextPage = "next-page";177 doReturn(ResponseEntity.ok(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());178 // when179 underTest.fetchFollowedArtists(nextPage);180 // then181 verify(restTemplate).exchange(eq(nextPage), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());182 }183 @Test184 @DisplayName("spotifyProperties are called to get base url if nextPage is null")185 void test_spotify_properties_called() {186 // given187 doReturn(ResponseEntity.ok(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());188 // when189 underTest.fetchFollowedArtists(null);190 // then191 verify(spotifyProperties).getRestBaseUrl();192 }193 @Test194 @DisplayName("get call is made")195 void test_get_call_made() {196 // given197 doReturn(ResponseEntity.ok(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());198 // when199 underTest.fetchFollowedArtists("666");200 // then201 verify(restTemplate).exchange(any(), eq(GET), any(), ArgumentMatchers.<Class<SpotifySavedAlbumsPage>>any(), anyMap());202 }203 @Test204 @DisplayName("correct response type is requested")205 void test_correct_response_type() {206 // given207 doReturn(ResponseEntity.ok(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());208 // when209 underTest.fetchFollowedArtists("666");210 // then211 verify(restTemplate).exchange(any(), any(), any(), eq(SpotifyFollowedArtistsPageContainer.class), anyMap());212 }213 @Test214 @DisplayName("url parameters are set")215 void test_url_parameters() {216 // given217 doReturn(ResponseEntity.ok(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());218 // when219 underTest.fetchFollowedArtists("666");220 // then221 verify(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), urlParameterCaptor.capture());222 Map<String, Object> urlParameter = urlParameterCaptor.getValue();223 assertThat(urlParameter.get(LIMIT_PARAMETER_NAME)).isEqualTo(LIMIT);224 }225 @Test226 @DisplayName("ExternalStatusException is thrown if response body is null")227 void test_response_body_null() {228 // given229 doReturn(ResponseEntity.ok(null)).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());230 // when231 Throwable throwable = catchThrowable(() -> underTest.fetchFollowedArtists("666"));232 // then233 assertThat(throwable).isInstanceOf(ExternalServiceException.class);234 }235 @ParameterizedTest(name = "If the status is {0}, an ExternalServiceException is thrown")236 @MethodSource("httpStatusCodeProvider")237 @DisplayName("If the status code is not OK an ExternalServiceException is thrown")238 void test_status_code_not_ok(HttpStatus httpStatus) {239 // given240 doReturn(ResponseEntity.status(httpStatus).body(new SpotifyFollowedArtistsPageContainer())).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());241 Throwable throwable = catchThrowable(() -> underTest.fetchFollowedArtists("666"));242 // then243 assertThat(throwable).isInstanceOf(ExternalServiceException.class);244 }245 @Test246 @DisplayName("result is returned")247 void test_result_returned() {248 // given249 var expectedResult = SpotifyFollowedArtistsPageContainer.builder().artistsPage(new SpotifyFollowedArtistsPage()).build();250 doReturn(ResponseEntity.ok(expectedResult)).when(restTemplate).exchange(any(), any(), any(), ArgumentMatchers.<Class<SpotifyArtistSearchResultContainer>>any(), anyMap());251 // when252 var result = underTest.fetchFollowedArtists("666");253 // then254 assertThat(result).isEqualTo(expectedResult.getArtistsPage());255 }256 private Stream<Arguments> httpStatusCodeProvider() {257 return Stream.of(HttpStatus.values()).filter(status -> !status.is2xxSuccessful()).map(Arguments::of);258 }259 }260}...

Full Screen

Full Screen

Source:UsageOfAnyMatchersInspectionAnyXTest.java Github

copy

Full Screen

...41 " }\n" +42 "}");43 }44 public void testArgumentMatchersAnyMapOfReplacedWithAnyMap() {45 doQuickFixTest("Replace with ArgumentMatchers.anyMap()", "UseAnyMapInsteadOfAnyMapOfTest.java",46 "import org.mockito.Mockito;\n" +47 "import org.mockito.ArgumentMatchers;\n" +48 "import java.util.Map;\n" +49 "\n" +50 "public class UseAnyMapInsteadOfAnyMapOfTest {\n" +51 " public void testMethod() {\n" +52 " MockObject mock = Mockito.mock(MockObject.class);\n" +53 " Mockito.doReturn(10).when(mock).method(ArgumentMatchers.anyMap<caret>Of(String.class, String.class));\n" +54 " }\n" +55 " private static final class MockObject {\n" +56 " public int method(Map<String, String> s) {\n" +57 " return 0;\n" +58 " }\n" +59 " }\n" +60 "}",61 "import org.mockito.Mockito;\n" +62 "import org.mockito.ArgumentMatchers;\n" +63 "import java.util.Map;\n" +64 "\n" +65 "public class UseAnyMapInsteadOfAnyMapOfTest {\n" +66 " public void testMethod() {\n" +67 " MockObject mock = Mockito.mock(MockObject.class);\n" +68 " Mockito.doReturn(10).when(mock).method(ArgumentMatchers.anyMap());\n" +69 " }\n" +70 " private static final class MockObject {\n" +71 " public int method(Map<String, String> s) {\n" +72 " return 0;\n" +73 " }\n" +74 " }\n" +75 "}");76 }77 public void testArgumentMatchersAnyIterableOfReplacedWithAnyIterableForStaticImport() {78 doQuickFixTest("Replace with ArgumentMatchers.anyIterable()", "UseAnyIterableInsteadOfAnyIterableOfTest.java",79 "import org.mockito.Mockito;\n" +80 "\n" +81 "import static org.mockito.ArgumentMatchers.anyIterableOf;\n" +82 "\n" +83 "public class UseAnyIterableInsteadOfAnyIterableOfTest {\n" +84 " public void testMethod() {\n" +85 " MockObject mock = Mockito.mock(MockObject.class);\n" +86 " Mockito.doReturn(10).when(mock).method(anyIterable<caret>Of(String.class));\n" +87 " }\n" +88 " private static final class MockObject {\n" +89 " public int method(Iterable<String> s) {\n" +90 " return 0;\n" +91 " }\n" +92 " }\n" +93 "}",94 "import org.mockito.Mockito;\n" +95 "\n" +96 "import static org.mockito.ArgumentMatchers.anyIterable;\n" +97 "import static org.mockito.ArgumentMatchers.anyIterableOf;\n" +98 "\n" +99 "public class UseAnyIterableInsteadOfAnyIterableOfTest {\n" +100 " public void testMethod() {\n" +101 " MockObject mock = Mockito.mock(MockObject.class);\n" +102 " Mockito.doReturn(10).when(mock).method(anyIterable());\n" +103 " }\n" +104 " private static final class MockObject {\n" +105 " public int method(Iterable<String> s) {\n" +106 " return 0;\n" +107 " }\n" +108 " }\n" +109 "}");110 }111 public void testArgumentMatchersAnyMapOfReplacedWithAnyMapForStaticImport() {112 doQuickFixTest("Replace with ArgumentMatchers.anyMap()", "UseAnyMapInsteadOfAnyMapOfTest.java",113 "import org.mockito.Mockito;\n" +114 "import java.util.Map;\n" +115 "\n" +116 "import static org.mockito.ArgumentMatchers.anyMapOf;\n" +117 "\n" +118 "public class UseAnyMapInsteadOfAnyMapOfTest {\n" +119 " public void testMethod() {\n" +120 " MockObject mock = Mockito.mock(MockObject.class);\n" +121 " Mockito.doReturn(10).when(mock).method(anyMap<caret>Of(String.class, String.class));\n" +122 " }\n" +123 " private static final class MockObject {\n" +124 " public int method(Map<String, String> s) {\n" +125 " return 0;\n" +126 " }\n" +127 " }\n" +128 "}",129 "import org.mockito.Mockito;\n" +130 "import java.util.Map;\n" +131 "\n" +132 "import static org.mockito.ArgumentMatchers.anyMap;\n" +133 "import static org.mockito.ArgumentMatchers.anyMapOf;\n" +134 "\n" +135 "public class UseAnyMapInsteadOfAnyMapOfTest {\n" +136 " public void testMethod() {\n" +137 " MockObject mock = Mockito.mock(MockObject.class);\n" +138 " Mockito.doReturn(10).when(mock).method(anyMap());\n" +139 " }\n" +140 " private static final class MockObject {\n" +141 " public int method(Map<String, String> s) {\n" +142 " return 0;\n" +143 " }\n" +144 " }\n" +145 "}");146 }147 public void testMatchersAnyIterableOfReplacedWithAnyIterable() {148 doQuickFixTest("Replace with ArgumentMatchers.anyIterable()", "UseAnyIterableInsteadOfAnyIterableOfTest.java",149 "import org.mockito.Mockito;\n" +150 "import org.mockito.Matchers;\n" +151 "\n" +152 "public class UseAnyIterableInsteadOfAnyIterableOfTest {\n" +153 " public void testMethod() {\n" +154 " MockObject mock = Mockito.mock(MockObject.class);\n" +155 " Mockito.doReturn(10).when(mock).method(Matchers.anyIterable<caret>Of(String.class));\n" +156 " }\n" +157 " private static final class MockObject {\n" +158 " public int method(Iterable<String> s) {\n" +159 " return 0;\n" +160 " }\n" +161 " }\n" +162 "}",163 "import org.mockito.ArgumentMatchers;\n" +164 "import org.mockito.Mockito;\n" +165 "import org.mockito.Matchers;\n" +166 "\n" +167 "public class UseAnyIterableInsteadOfAnyIterableOfTest {\n" +168 " public void testMethod() {\n" +169 " MockObject mock = Mockito.mock(MockObject.class);\n" +170 " Mockito.doReturn(10).when(mock).method(ArgumentMatchers.anyIterable());\n" +171 " }\n" +172 " private static final class MockObject {\n" +173 " public int method(Iterable<String> s) {\n" +174 " return 0;\n" +175 " }\n" +176 " }\n" +177 "}");178 }179 public void testMatchersAnyMapOfReplacedWithAnyMap() {180 doQuickFixTest("Replace with ArgumentMatchers.anyMap()", "UseAnyMapInsteadOfAnyMapOfTest.java",181 "import org.mockito.Mockito;\n" +182 "import org.mockito.Matchers;\n" +183 "import java.util.Map;\n" +184 "\n" +185 "public class UseAnyMapInsteadOfAnyMapOfTest {\n" +186 " public void testMethod() {\n" +187 " MockObject mock = Mockito.mock(MockObject.class);\n" +188 " Mockito.doReturn(10).when(mock).method(Matchers.anyMap<caret>Of(String.class, String.class));\n" +189 " }\n" +190 " private static final class MockObject {\n" +191 " public int method(Map<String, String> s) {\n" +192 " return 0;\n" +193 " }\n" +194 " }\n" +195 "}",196 "import org.mockito.ArgumentMatchers;\n" +197 "import org.mockito.Mockito;\n" +198 "import org.mockito.Matchers;\n" +199 "import java.util.Map;\n" +200 "\n" +201 "public class UseAnyMapInsteadOfAnyMapOfTest {\n" +202 " public void testMethod() {\n" +203 " MockObject mock = Mockito.mock(MockObject.class);\n" +204 " Mockito.doReturn(10).when(mock).method(ArgumentMatchers.anyMap());\n" +205 " }\n" +206 " private static final class MockObject {\n" +207 " public int method(Map<String, String> s) {\n" +208 " return 0;\n" +209 " }\n" +210 " }\n" +211 "}");212 }213}...

Full Screen

Full Screen

Source:WebhooksClientTest.java Github

copy

Full Screen

1package com.jwplayer.jwplatform.client;2import static org.junit.Assert.assertEquals;3import static org.mockito.ArgumentMatchers.anyBoolean;4import static org.mockito.ArgumentMatchers.anyMap;5import static org.mockito.ArgumentMatchers.anyString;6import static org.mockito.ArgumentMatchers.eq;7import static org.mockito.Mockito.when;8import static org.powermock.api.mockito.PowerMockito.mockStatic;9import java.util.HashMap;10import java.util.Map;11import org.json.JSONException;12import org.json.JSONObject;13import org.junit.Test;14import org.junit.runner.RunWith;15import org.mockito.Mockito;16import org.powermock.api.mockito.PowerMockito;17import org.powermock.core.classloader.annotations.PrepareForTest;18import org.powermock.modules.junit4.PowerMockRunner;19import com.jwplayer.jwplatform.exception.JWPlatformException;20import com.jwplayer.jwplatform.rest.HttpCalls;21@RunWith(PowerMockRunner.class)22@PrepareForTest({ HttpCalls.class })23public class WebhooksClientTest {24 WebhooksClient webhooksClient = WebhooksClient.getClient("fakeSecret");25 @Test26 public void testAllMethods() throws JWPlatformException {27 webhooksClient.addHeader("test", "testVal");28 mockStatic(HttpCalls.class);29 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))30 .thenReturn(new JSONObject("{\"code\":\"success\"}"));31 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("POST"), anyMap()))32 .thenReturn(new JSONObject("{\"code\":\"Object creation successful\"}"));33 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("DELETE"), anyMap()))34 .thenReturn(new JSONObject("{\"code\":\"Deletion success!\"}"));35 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("PATCH"), anyMap()))36 .thenReturn(new JSONObject("{\"code\":\"Update successful\"}"));37 Map<String, String> params = new HashMap<>();38 params.put("title", "test");39 JSONObject listResp = webhooksClient.listWebhooks(new HashMap<>());40 assertEquals(listResp.get("code"), "success");41 webhooksClient.listWebhooks(params);42 JSONObject createResp = webhooksClient.createWebhookResource(new HashMap<>());43 assertEquals(createResp.get("code"), "Object creation successful");44 webhooksClient.createWebhookResource(params);45 JSONObject deleteResp = webhooksClient.deleteWebhook("webhookId");46 assertEquals(deleteResp.get("code"), "Deletion success!");47 JSONObject updateResp = webhooksClient.updateWebhook("webhookId", params);48 assertEquals(updateResp.get("code"), "Update successful");49 webhooksClient.updateWebhook("webhookId", new HashMap<>());50 webhooksClient.retrieveWebhookById("webhookId", new HashMap<>());51 webhooksClient.retrieveWebhookById("webhookId", params);52 PowerMockito.verifyStatic(HttpCalls.class, Mockito.times(9));53 HttpCalls.request(anyString(), anyMap(), anyBoolean(), anyString(), anyMap());54 webhooksClient.removeHeader("test");55 }56 @Test(expected = JWPlatformException.class)57 public void testGetException() throws JSONException, JWPlatformException {58 webhooksClient.addHeader("test", "testVal");59 mockStatic(HttpCalls.class);60 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))61 .thenThrow(new JWPlatformException("some exception occured"));62 webhooksClient.listWebhooks(new HashMap<>());63 }64}...

Full Screen

Full Screen

Source:ChannelsClientTest.java Github

copy

Full Screen

1package com.jwplayer.jwplatform.client;2import static org.junit.Assert.assertEquals;3import static org.mockito.ArgumentMatchers.anyBoolean;4import static org.mockito.ArgumentMatchers.anyMap;5import static org.mockito.ArgumentMatchers.anyString;6import static org.mockito.ArgumentMatchers.eq;7import static org.mockito.Mockito.when;8import static org.powermock.api.mockito.PowerMockito.mockStatic;9import java.util.HashMap;10import java.util.Map;11import org.json.JSONException;12import org.json.JSONObject;13import org.junit.Test;14import org.junit.runner.RunWith;15import org.mockito.Mockito;16import org.powermock.api.mockito.PowerMockito;17import org.powermock.core.classloader.annotations.PrepareForTest;18import org.powermock.modules.junit4.PowerMockRunner;19import com.jwplayer.jwplatform.exception.JWPlatformException;20import com.jwplayer.jwplatform.rest.HttpCalls;21@RunWith(PowerMockRunner.class)22@PrepareForTest({ HttpCalls.class })23public class ChannelsClientTest {24 ChannelsClient channelsClient = ChannelsClient.getClient("fakeSecret");25 @Test26 public void testAllMethods() throws JWPlatformException {27 channelsClient.addHeader("test", "testVal");28 mockStatic(HttpCalls.class);29 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))30 .thenReturn(new JSONObject("{\"code\":\"success\"}"));31 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("POST"), anyMap()))32 .thenReturn(new JSONObject("{\"code\":\"Object creation successful\"}"));33 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("DELETE"), anyMap()))34 .thenReturn(new JSONObject("{\"code\":\"Deletion success!\"}"));35 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("PATCH"), anyMap()))36 .thenReturn(new JSONObject("{\"code\":\"Update successful\"}"));37 JSONObject listResp = channelsClient.listChannels("siteId", new HashMap<>());38 assertEquals(listResp.get("code"), "success");39 JSONObject createResp = channelsClient.createChannel("siteId", new HashMap<>());40 assertEquals(createResp.get("code"), "Object creation successful");41 JSONObject deleteResp = channelsClient.deleteChannel("siteId", "adScheduleId");42 assertEquals(deleteResp.get("code"), "Deletion success!");43 Map<String, String> updateParams = new HashMap<>();44 updateParams.put("title", "test");45 JSONObject updateAdResp = channelsClient.changeSettingsForChannel("siteId", "channelId", updateParams);46 assertEquals(updateAdResp.get("code"), "Update successful");47 channelsClient.changeSettingsForChannel("siteId", "channelId", new HashMap<>());48 channelsClient.getDetailsById("siteId", "channelId", new HashMap<>());49 PowerMockito.verifyStatic(HttpCalls.class, Mockito.times(6));50 HttpCalls.request(anyString(), anyMap(), anyBoolean(), anyString(), anyMap());51 channelsClient.removeHeader("test");52 }53 @Test(expected = JWPlatformException.class)54 public void testGetException() throws JSONException, JWPlatformException {55 channelsClient.addHeader("test", "testVal");56 mockStatic(HttpCalls.class);57 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))58 .thenThrow(new JWPlatformException("some exception occured"));59 channelsClient.listChannels("siteId", new HashMap<>());60 }61}...

Full Screen

Full Screen

Source:ImportsClientTest.java Github

copy

Full Screen

1package com.jwplayer.jwplatform.client;2import static org.junit.Assert.assertEquals;3import static org.mockito.ArgumentMatchers.anyBoolean;4import static org.mockito.ArgumentMatchers.anyMap;5import static org.mockito.ArgumentMatchers.anyString;6import static org.mockito.ArgumentMatchers.eq;7import static org.mockito.Mockito.when;8import static org.powermock.api.mockito.PowerMockito.mockStatic;9import java.util.HashMap;10import java.util.Map;11import org.json.JSONException;12import org.json.JSONObject;13import org.junit.Test;14import org.junit.runner.RunWith;15import org.mockito.Mockito;16import org.powermock.api.mockito.PowerMockito;17import org.powermock.core.classloader.annotations.PrepareForTest;18import org.powermock.modules.junit4.PowerMockRunner;19import com.jwplayer.jwplatform.exception.JWPlatformException;20import com.jwplayer.jwplatform.rest.HttpCalls;21@RunWith(PowerMockRunner.class)22@PrepareForTest({ HttpCalls.class })23public class ImportsClientTest {24 ImportsClient importsClient = ImportsClient.getClient("fakeSecret");25 @Test26 public void testAllMethods() throws JWPlatformException {27 importsClient.addHeader("test", "testVal");28 mockStatic(HttpCalls.class);29 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))30 .thenReturn(new JSONObject("{\"code\":\"success\"}"));31 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("POST"), anyMap()))32 .thenReturn(new JSONObject("{\"code\":\"Object creation successful\"}"));33 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("DELETE"), anyMap()))34 .thenReturn(new JSONObject("{\"code\":\"Deletion success!\"}"));35 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("PATCH"), anyMap()))36 .thenReturn(new JSONObject("{\"code\":\"Update successful\"}"));37 JSONObject listResp = importsClient.listImports("siteId", new HashMap<>());38 assertEquals(listResp.get("code"), "success");39 JSONObject deleteResp = importsClient.deleteImport("siteId", "importId");40 assertEquals(deleteResp.get("code"), "Deletion success!");41 Map<String, String> params = new HashMap<>();42 params.put("title", "test");43 JSONObject createResp = importsClient.addImport("siteId", new HashMap<>());44 assertEquals(createResp.get("code"), "Object creation successful");45 importsClient.addImport("siteId", params);46 importsClient.updateImport("siteId", "importId", params);47 JSONObject updateAdResp = importsClient.updateImport("siteId", "importId", new HashMap<>());48 assertEquals(updateAdResp.get("code"), "Update successful");49 importsClient.getImportById("siteId", "importId", new HashMap<>());50 PowerMockito.verifyStatic(HttpCalls.class, Mockito.times(7));51 HttpCalls.request(anyString(), anyMap(), anyBoolean(), anyString(), anyMap());52 importsClient.removeHeader("test");53 }54 @Test(expected = JWPlatformException.class)55 public void testGetException() throws JSONException, JWPlatformException {56 importsClient.addHeader("test", "testVal");57 mockStatic(HttpCalls.class);58 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))59 .thenThrow(new JWPlatformException("some exception occured"));60 importsClient.listImports("siteId", new HashMap<>());61 }62}...

Full Screen

Full Screen

Source:ThumbnailsClientTest.java Github

copy

Full Screen

1package com.jwplayer.jwplatform.client;2import static org.junit.Assert.assertEquals;3import static org.mockito.ArgumentMatchers.anyBoolean;4import static org.mockito.ArgumentMatchers.anyMap;5import static org.mockito.ArgumentMatchers.anyString;6import static org.mockito.ArgumentMatchers.eq;7import static org.mockito.Mockito.when;8import static org.powermock.api.mockito.PowerMockito.mockStatic;9import java.util.HashMap;10import java.util.Map;11import org.json.JSONException;12import org.json.JSONObject;13import org.junit.Test;14import org.junit.runner.RunWith;15import org.mockito.Mockito;16import org.powermock.api.mockito.PowerMockito;17import org.powermock.core.classloader.annotations.PrepareForTest;18import org.powermock.modules.junit4.PowerMockRunner;19import com.jwplayer.jwplatform.exception.JWPlatformException;20import com.jwplayer.jwplatform.rest.HttpCalls;21@RunWith(PowerMockRunner.class)22@PrepareForTest({ HttpCalls.class })23public class ThumbnailsClientTest {24 ThumbnailsClient thumbnailClient = ThumbnailsClient.getClient("fakeSecret");25 @Test26 public void testAllMethods() throws JWPlatformException {27 thumbnailClient.addHeader("test", "testVal");28 mockStatic(HttpCalls.class);29 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))30 .thenReturn(new JSONObject("{\"code\":\"success\"}"));31 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("POST"), anyMap()))32 .thenReturn(new JSONObject("{\"code\":\"Object creation successful\"}"));33 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("DELETE"), anyMap()))34 .thenReturn(new JSONObject("{\"code\":\"Deletion success!\"}"));35 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("PATCH"), anyMap()))36 .thenReturn(new JSONObject("{\"code\":\"Update successful\"}"));37 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("PUT"), anyMap()))38 .thenReturn(new JSONObject("{\"code\":\"Put successful\"}"));39 JSONObject listResp = thumbnailClient.listThumbnails("siteId", new HashMap<>());40 assertEquals(listResp.get("code"), "success");41 JSONObject deleteResp = thumbnailClient.deleteThumbnail("siteId", "thumbnailId");42 assertEquals(deleteResp.get("code"), "Deletion success!");43 Map<String, String> params = new HashMap<>();44 params.put("title", "test");45 thumbnailClient.createThumbnail("siteId", new HashMap<>());46 thumbnailClient.createThumbnail("siteId", params);47 thumbnailClient.updateThumbnail("siteId", "thumbnailId", params);48 thumbnailClient.deleteThumbnail("siteId", "thumbnailId");49 PowerMockito.verifyStatic(HttpCalls.class, Mockito.times(6));50 HttpCalls.request(anyString(), anyMap(), anyBoolean(), anyString(), anyMap());51 thumbnailClient.removeHeader("test");52 }53 @Test(expected = JWPlatformException.class)54 public void testGetOriginalsException() throws JSONException, JWPlatformException {55 thumbnailClient.addHeader("test", "testVal");56 mockStatic(HttpCalls.class);57 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))58 .thenThrow(new JWPlatformException("some exception occured"));59 thumbnailClient.listThumbnails("siteId", new HashMap<>());60 }61}...

Full Screen

Full Screen

Source:UploadsClientTest.java Github

copy

Full Screen

1package com.jwplayer.jwplatform.client;2import static org.junit.Assert.assertEquals;3import static org.mockito.ArgumentMatchers.anyBoolean;4import static org.mockito.ArgumentMatchers.anyMap;5import static org.mockito.ArgumentMatchers.anyString;6import static org.mockito.ArgumentMatchers.eq;7import static org.mockito.Mockito.when;8import static org.powermock.api.mockito.PowerMockito.mockStatic;9import java.util.HashMap;10import org.json.JSONException;11import org.json.JSONObject;12import org.junit.Test;13import org.junit.runner.RunWith;14import org.mockito.Mockito;15import org.powermock.api.mockito.PowerMockito;16import org.powermock.core.classloader.annotations.PrepareForTest;17import org.powermock.modules.junit4.PowerMockRunner;18import com.jwplayer.jwplatform.exception.JWPlatformException;19import com.jwplayer.jwplatform.rest.HttpCalls;20@RunWith(PowerMockRunner.class)21@PrepareForTest({ HttpCalls.class })22public class UploadsClientTest {23 UploadsClient uploadsClient = UploadsClient.getClient("fakeSecret");24 @Test25 public void testAllMethods() throws JWPlatformException {26 uploadsClient.addHeader("test", "testVal");27 mockStatic(HttpCalls.class);28 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))29 .thenReturn((new JSONObject("{\"code\":\"success\"}")));30 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("PUT"), anyMap()))31 .thenReturn((new JSONObject("{\"code\":\"Upload successful\"}")));32 JSONObject listResp = uploadsClient.listCompleteIncompleteParts("uploadId", new HashMap<>());33 assertEquals(listResp.get("code"), "success");34 JSONObject putResp = uploadsClient.completeUpload("uploadId", new HashMap<>());35 assertEquals(putResp.get("code"), "Upload successful");36 PowerMockito.verifyStatic(HttpCalls.class, Mockito.times(2));37 HttpCalls.request(anyString(), anyMap(), anyBoolean(), anyString(), anyMap());38 uploadsClient.removeHeader("test");39 }40 @Test(expected = JWPlatformException.class)41 public void testGetException() throws JSONException, JWPlatformException {42 uploadsClient.addHeader("test", "testVal");43 mockStatic(HttpCalls.class);44 when(HttpCalls.request(anyString(), anyMap(), anyBoolean(), eq("GET"), anyMap()))45 .thenThrow(new JWPlatformException("some exception occured"));46 uploadsClient.listCompleteIncompleteParts("uploadId", new HashMap<>());47 }48}...

Full Screen

Full Screen

Source:ConfigLoaderTest.java Github

copy

Full Screen

2import com.baidu.brcc.model.AuthVo;3import com.baidu.brcc.model.R;4import java.util.Set;5import static org.mockito.ArgumentMatchers.any;6import static org.mockito.ArgumentMatchers.anyMap;7import static org.mockito.ArgumentMatchers.anyString;8import static org.mockito.Mockito.mock;9import static org.mockito.Mockito.when;10import com.baidu.brcc.utils.HttpClient;11import org.apache.commons.logging.Log;12import org.junit.Assert;13import org.junit.Before;14import org.junit.Test;15import org.mockito.InjectMocks;16import org.mockito.Mock;17import static org.mockito.Mockito.when;18import org.mockito.MockitoAnnotations;19import org.slf4j.Logger;20import org.springframework.beans.factory.BeanFactory;21import org.springframework.context.ApplicationContext;22import org.springframework.core.env.Environment;23import org.springframework.core.env.MutablePropertySources;24import org.springframework.core.env.PropertySources;25import org.springframework.util.PropertiesPersister;26import java.io.IOException;27import java.util.Properties;28public class ConfigLoaderTest {29 @Mock30 Logger LOGGER;31 @Mock32 HttpClient httpClient;33 @Mock34 Environment environment;35 @Mock36 ApplicationContext applicationContext;37 @Mock38 Properties ccLoadedProps;39 @Mock40 Properties cachedProps;41 @Mock42 Properties rccProperties;43 @Mock44 MutablePropertySources propertySources;45 @Mock46 PropertySources appliedPropertySources;47 @Mock48 BeanFactory beanFactory;49 @Mock50 Log logger;51 @Mock52 PropertiesPersister propertiesPersister;53 @Mock54 private ConfigLoader configLoader;55 @Before56 public void setUp() {57 MockitoAnnotations.initMocks(this);58 }59 @Test60 public void testLogin() throws Exception {61 String authUrl = "abc";62 R<AuthVo> vo = null;63 vo = httpClient.postJson(anyString(), any(), any(), anyMap(), anyMap());64 String res = configLoader.login();65 Assert.assertEquals(null, res);66 }67}...

Full Screen

Full Screen

anyMap

Using AI Code Generation

copy

Full Screen

1import static org.mockito.ArgumentMatchers.anyMap;2import static org.mockito.Mockito.when;3import java.util.HashMap;4import java.util.Map;5import org.junit.Test;6import org.junit.runner.RunWith;7import org.mockito.InjectMocks;8import org.mockito.Mock;9import org.mockito.junit.MockitoJUnitRunner;10@RunWith(MockitoJUnitRunner.class)11public class MockitoArgumentMatcherTest {12 private Map<String, Object> mockMap;13 private Map<String, Object> map;14 public void test() {15 Map<String, Object> map1 = new HashMap<>();16 map1.put("hello", "world");17 when(mockMap.putAll(anyMap())).thenReturn(null);18 map.putAll(map1);19 }20}21 when(mock.get(anyInt(), anyString()))22 when(mock.get(anyInt(), anyString()).thenReturn("foo")23 when(mock.get(anyInt())24 when(mock.get(anyInt(), anyString())25 when(mock.get(anyInt(), anyString())26 when(mock.get(anyInt(), anyString(), anyString())27 at org.mockito.internal.matchers.SmartEquals.validateState(SmartEquals.java:56)28 at org.mockito.internal.matchers.SmartEquals.matches(SmartEquals.java:41)29 at org.mockito.internal.progress.ThreadSafeMockingProgress.validateState(ThreadSafeMockingProgress.java:149)30 at org.mockito.internal.progress.ThreadSafeMockingProgress.validateState(ThreadSafeMockingProgress.java:141)31 at org.mockito.internal.progress.ThreadSafeMockingProgress.argumentMatcherValidationFinished(ThreadSafeMockingProgress.java:131)32 at org.mockito.internal.handler.MockHandlerImpl.handle(MockHandlerImpl.java:99)33 at org.mockito.internal.handler.NullResultGuardian.handle(NullResultGuardian.java:29)34 at org.mockito.internal.handler.InvocationNotifierHandler.handle(InvocationNotifierHandler.java:38)35 at org.mockito.internal.creation.bytebuddy.MockMethodInterceptor.doIntercept(MockMethodInterceptor.java:60)

Full Screen

Full Screen

anyMap

Using AI Code Generation

copy

Full Screen

1public class MockitoArgumentMatchersAnyMapTest {2 public static void main(String[] args) {3 Map<String, String> map = new HashMap<>();4 map.put("key1", "value1");5 map.put("key2", "value2");6 map.put("key3", "value3");7 map.put("key4", "value4");8 Map<String, String> mockMap = mock(Map.class);9 when(mockMap.get(anyMap())).thenReturn("value");10 System.out.println(mockMap.get(map));11 }12}13How to use anyInt() method of org.mockito.ArgumentMatchers class in Mockito?14How to use anyString() method of org.mockito.ArgumentMatchers class in Mockito?15How to use anyObject() method of org.mockito.ArgumentMatchers class in Mockito?16How to use anyList() method of org.mockito.ArgumentMatchers class in Mockito?17How to use anySet() method of org.mockito.ArgumentMatchers class in Mockito?18How to use anyCollection() method of org.mockito.ArgumentMatchers class in Mockito?19How to use anyIterable() method of org.mockito.ArgumentMatchers class in Mockito?20How to use any() method of org.mockito.ArgumentMatchers class in Mockito?21How to use anyVararg() method of org.mockito.ArgumentMatchers class in Mockito?22How to use anyBoolean() method of org.mockito.ArgumentMatchers class in Mockito?23How to use anyByte() method of org.mockito.ArgumentMatchers class in Mockito?24How to use anyChar() method of org.mockito.ArgumentMatchers class in Mockito?25How to use anyDouble() method of org.mockito.ArgumentMatchers class in Mockito?26How to use anyFloat() method of org.mockito.ArgumentMatchers class in Mockito?27How to use anyLong() method of org.mockito.ArgumentMatchers class in Mockito?28How to use anyShort() method of org.mockito.ArgumentMatchers class in Mockito?29How to use any() method of org.mockito.ArgumentMatchers class in Mockito?30How to use anyVararg() method of org.mockito.ArgumentMatchers class in Mockito?31How to use anyBoolean() method of org.mockito.ArgumentMatchers class in Mockito?32How to use anyByte() method of org.mockito.ArgumentMatchers class in Mockito?

Full Screen

Full Screen

anyMap

Using AI Code Generation

copy

Full Screen

1package com.automationrhapsody.mockito;2import static org.mockito.ArgumentMatchers.anyMap;3import static org.mockito.Mockito.mock;4import static org.mockito.Mockito.verify;5import java.util.Map;6import org.junit.Test;7public class MockitoAnyMapTest {8 public void testAnyMap() {9 Map<String, String> mockMap = mock(Map.class);10 mockMap.put("one", "1");11 mockMap.put("two", "2");12 mockMap.put("three", "3");13 verify(mockMap).put(anyMap(), anyMap());14 }15}16Argument(s) are different! Wanted:17mockMap.put(18 anyMap(), 19 anyMap()20);21-> at com.automationrhapsody.mockito.MockitoAnyMapTest.testAnyMap(MockitoAnyMapTest.java:25)22mockMap.put(23 {"one"="1", "two"="2", "three"="3"}, 24);25-> at com.automationrhapsody.mockito.MockitoAnyMapTest.testAnyMap(MockitoAnyMapTest.java:25)26mockMap.put(27 {"one"="1", "two"="2", "three"="3"}, 28);29-> at com.automationrhapsody.mockito.MockitoAnyMapTest.testAnyMap(MockitoAnyMapTest.java:25)30mockMap.put(31 {"one"="1", "two"="2", "three"="3"}, 32);33-> at com.automationrhapsody.mockito.MockitoAnyMapTest.testAnyMap(MockitoAnyMapTest.java:25)34at com.automationrhapsody.mockito.MockitoAnyMapTest.testAnyMap(MockitoAnyMapTest.java:25)

Full Screen

Full Screen

anyMap

Using AI Code Generation

copy

Full Screen

1import java.util.Map;2import org.junit.Test;3import org.junit.runner.RunWith;4import org.mockito.ArgumentMatchers;5import org.mockito.Mock;6import org.mockito.junit.MockitoJUnitRunner;7import static org.mockito.Mockito.*;8@RunWith(MockitoJUnitRunner.class)9public class Test1 {10 private Map<String, String> mapMock;11 public void test1() {12 when(mapMock.get(ArgumentMatchers.anyString())).thenReturn("foo");

Full Screen

Full Screen

anyMap

Using AI Code Generation

copy

Full Screen

1import org.mockito.ArgumentMatchers;2import org.mockito.Mockito;3public class 1 {4 public static void main(String[] args) {5 List mockList = Mockito.mock(List.class);6 Mockito.when(mockList.get(ArgumentMatchers.anyInt())).thenReturn("element");7 Mockito.when(mockList.contains(ArgumentMatchers.argThat(isValid()))).thenReturn("element");8 System.out.println(mockList.get(999));9 Mockito.verify(mockList).get(ArgumentMatchers.anyInt());10 Mockito.when(mockList.contains(ArgumentMatchers.argThat(someString -> someString.length() > 5))).thenReturn("element");11 }12}13Mockito - ArgumentCaptor.capture()14Mockito - ArgumentCaptor.getValue()15Mockito - ArgumentCaptor.getAllValues()16Mockito - ArgumentCaptor.forClass()17Mockito - ArgumentCaptor.capture() and getValue()18Mockito - ArgumentCaptor.capture() and getAllValues()19Mockito - ArgumentCaptor.capture() and forClass()20Mockito - ArgumentCaptor.capture() and verify()21Mockito - ArgumentCaptor.capture() and verifyNoMoreInteractions()22Mockito - ArgumentCaptor.capture() and verifyZeroInteractions()23Mockito - ArgumentCaptor.capture() and verifyNoInteractions()24Mockito - ArgumentCaptor.capture() and verifyNoMoreInteractions()25Mockito - ArgumentCaptor.capture() and verifyZeroInteractions()26Mockito - ArgumentCaptor.capture() and verifyNoInteractions()27Mockito - ArgumentCaptor.capture() and verifyNoMoreInteractions()28Mockito - ArgumentCaptor.capture() and verifyZeroInteractions()29Mockito - ArgumentCaptor.capture() and verifyNoInteractions()30Mockito - ArgumentCaptor.capture() and verifyNoMoreInteractions()31Mockito - ArgumentCaptor.capture() and verifyZeroInteractions()32Mockito - ArgumentCaptor.capture() and verifyNoInteractions()

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful