Deprecate NoopAutoCloseable for removal
[controller.git] / opendaylight / md-sal / messagebus-impl / src / test / java / org / opendaylight / controller / messagebus / app / impl / EventSourceRegistrationImplTest.java
index 6649aa82de7d08948cab9e9a60d990bb3d58a693..838d1746ee50aee1aa3d245d2f7f53e192cdb66a 100644 (file)
@@ -7,7 +7,7 @@
  */
 package org.opendaylight.controller.messagebus.app.impl;
 
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.times;
 import static org.mockito.Mockito.verify;
@@ -23,11 +23,11 @@ public class EventSourceRegistrationImplTest {
     EventSourceTopology eventSourceTopologyMock;
 
     @BeforeClass
-    public static void initTestClass() throws IllegalAccessException, InstantiationException {
+    public static void initTestClass() {
     }
 
     @Before
-    public void setUp() throws Exception {
+    public void setUp() {
         EventSource eventSourceMock = mock(EventSource.class);
         eventSourceTopologyMock = mock(EventSourceTopology.class);
         eventSourceRegistrationImplLocal = new EventSourceRegistrationImplLocal(eventSourceMock,