Skip to content
Permalink
Browse files

Fixed: Remove unnecessary declared exceptions in ‘RequestHandlerTests’

(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 3b6782981f556aef633a52e5318316af8075da30
@@ -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;
@@ -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));

0 comments on commit 3b67829

Please sign in to comment.
You can’t perform that action at this time.