Remove redundant exception declarations
[openflowplugin.git] / openflowplugin-impl / src / test / java / org / opendaylight / openflowplugin / impl / karaf / ShowStatsCommandProviderTest.java
index cb96800a741a4a4296e2bce55c6f86a988f4022f..870f233a6859386c2859380932a86266a2b801c8 100644 (file)
@@ -8,12 +8,13 @@
 
 package org.opendaylight.openflowplugin.impl.karaf;
 
+import static org.mockito.ArgumentMatchers.matches;
+
 import com.google.common.base.Function;
 import javax.annotation.Nullable;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Test;
-import org.mockito.Matchers;
 import org.mockito.Mockito;
 import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.MessageIntelligenceAgency;
 import org.opendaylight.openflowplugin.api.openflow.statistics.ofpspecific.MessageSpy;
@@ -44,9 +45,9 @@ public class ShowStatsCommandProviderTest extends AbstractKarafTest {
     }
 
     @After
-    public void tearDown() throws Exception {
+    public void tearDown() {
         // Pattern.DOTALL is set inline via "(?s)" at the beginning
-        Mockito.verify(console).print(Matchers.matches("(?s).+"));
+        Mockito.verify(console).print(matches("(?s).+"));
         messageIntelligenceAgency.resetStatistics();
     }