Skip to content

Commit

Permalink
Fixed: Remove unnecessary declared exceptions in ‘RequestHandlerTests’
Browse files Browse the repository at this point in the history
(OFBIZ-10938)


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1857912 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
mthl committed Apr 21, 2019
1 parent 990c8a3 commit 3b67829
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import java.security.cert.CertificateEncodingException;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Collection;
Expand Down Expand Up @@ -218,7 +217,7 @@ public void checkCertificatesFailure() {

@Test
// Check that certificates with 2.2 spec are handled correctly.
public void checkCertificates22() throws CertificateEncodingException {
public void checkCertificates22() {
when(req.getAttribute("javax.servlet.request.X509Certificate")).thenReturn(new X509Certificate[] {});
assertTrue(RequestHandler.checkCertificates(req, x -> true));
assertFalse(RequestHandler.checkCertificates(req, x -> false));
Expand Down

0 comments on commit 3b67829

Please sign in to comment.