svn commit: r1857912 - /ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1857912 - /ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java

mthl
Author: mthl
Date: Sun Apr 21 13:58:46 2019
New Revision: 1857912

URL: http://svn.apache.org/viewvc?rev=1857912&view=rev
Log:
Fixed: Remove unnecessary declared exceptions in ‘RequestHandlerTests’
(OFBIZ-10938)

Modified:
    ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java

Modified: ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java?rev=1857912&r1=1857911&r2=1857912&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/webapp/src/test/java/org/apache/ofbiz/webapp/control/RequestHandlerTests.java Sun Apr 21 13:58:46 2019
@@ -29,7 +29,6 @@ import static org.mockito.ArgumentMatche
 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 class RequestHandlerTests {
 
         @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));