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