Skip to content

Commit 21ccfd3

Browse files
committed
remove redundant code
1 parent 2cf3ce0 commit 21ccfd3

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/test/java/com/uid2/shared/attest/UidCoreClientTest.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -189,22 +189,4 @@ public void Download_NetworkError_LogsExceptionType() throws IOException, Attest
189189
"Should reference documentation")
190190
);
191191
}
192-
193-
@Test
194-
public void Download_Http403Error_DoesNotLogPath() throws IOException, AttestationResponseHandlerException {
195-
HttpResponse<String> mockHttpResponse = mock(HttpResponse.class);
196-
when(mockHttpResponse.statusCode()).thenReturn(403);
197-
when(mockHttpClient.get(eq("https://core-prod.uidapi.com/sites/refresh"), any(HashMap.class))).thenReturn(mockHttpResponse);
198-
199-
CloudStorageException result = assertThrows(CloudStorageException.class, () -> {
200-
uidCoreClient.download("https://core-prod.uidapi.com/sites/refresh");
201-
});
202-
203-
assertAll(
204-
() -> assertTrue(result.getMessage().contains("E12: Data Download Failure"),
205-
"Should contain E12 error code"),
206-
() -> assertTrue(result.getMessage().contains("HTTP response code 403"),
207-
"Should contain HTTP status code")
208-
);
209-
}
210192
}

0 commit comments

Comments
 (0)