use of com.venafi.vcert.sdk.certificate.ImportRequest in project vcert-java by Venafi.
the class VCertTknClientTest method importCertificateWithServerError.
@Test
@DisplayName("Import certificate with server error")
void importCertificateWithServerError() throws VCertException {
final ImportRequest importRequest = mock(ImportRequest.class);
doThrow(new FeignException.InternalServerError("Error", request, "".getBytes())).when(connector).importCertificate(importRequest);
assertThrows(VCertException.class, () -> classUnderTest.importCertificate(importRequest));
}
Aggregations