|
1 | 1 | package com.microsoft.graph.content; |
2 | 2 |
|
3 | 3 | import static org.junit.jupiter.api.Assertions.assertEquals; |
4 | | -import static org.junit.jupiter.api.Assertions.assertFalse; |
5 | 4 | import static org.junit.jupiter.api.Assertions.assertNotNull; |
6 | 5 | import static org.junit.jupiter.api.Assertions.assertNull; |
7 | 6 | import static org.junit.jupiter.api.Assertions.assertThrows; |
8 | | -import static org.junit.jupiter.api.Assertions.assertTrue; |
9 | 7 | import static org.mockito.ArgumentMatchers.any; |
10 | 8 | import static org.mockito.Mockito.mock; |
11 | 9 | import static org.mockito.Mockito.when; |
|
14 | 12 | import java.net.URL; |
15 | 13 | import java.util.Arrays; |
16 | 14 | import java.util.ArrayList; |
17 | | -import java.util.HashSet; |
18 | | -import java.util.concurrent.ThreadLocalRandom; |
19 | 15 |
|
20 | 16 | import com.google.gson.JsonObject; |
21 | | -import com.google.gson.JsonParser; |
22 | 17 | import com.microsoft.graph.authentication.IAuthenticationProvider; |
23 | 18 | import com.microsoft.graph.core.BaseClient; |
24 | 19 | import com.microsoft.graph.core.IBaseClient; |
|
33 | 28 | import com.microsoft.graph.serializer.ISerializer; |
34 | 29 |
|
35 | 30 | import org.junit.jupiter.api.Test; |
36 | | -import org.mockito.invocation.InvocationOnMock; |
37 | | -import org.mockito.stubbing.Answer; |
38 | 31 |
|
39 | 32 | import okhttp3.Call; |
40 | 33 | import okhttp3.MediaType; |
@@ -154,7 +147,7 @@ public void executeBatchTest() throws Throwable { |
154 | 147 |
|
155 | 148 | final CoreHttpProvider mHttpProvider = new CoreHttpProvider(new DefaultSerializer(mock(ILogger.class)), |
156 | 149 | mock(ILogger.class), mHttpClient); |
157 | | - final IBaseClient mClient = BaseClient.builder().authenticationProvider(mock(IAuthenticationProvider.class)) |
| 150 | + final IBaseClient<?> mClient = BaseClient.builder().authenticationProvider(mock(IAuthenticationProvider.class)) |
158 | 151 | .httpProvider(mHttpProvider).buildClient(); |
159 | 152 | final Response mResponse = new Response.Builder() |
160 | 153 | .request(new Request.Builder().url("https://graph.microsoft.com/v1.0/$batch").build()).code(200) |
|
0 commit comments