X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=networkmodel%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fnetworkmodel%2Flisteners%2FDeviceListener710Test.java;h=0dfe7405c8255322a0f474b6412b9d08be383088;hb=6bc844fe96e1bd2ae991f5a1b2ad3f7446f87f10;hp=56a5a4694cfc3d514565d7ea878b68185b2e57c1;hpb=f49968974e1477d4fd9cfdd87d867c9ad347678e;p=transportpce.git diff --git a/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener710Test.java b/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener710Test.java index 56a5a4694..0dfe7405c 100644 --- a/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener710Test.java +++ b/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/listeners/DeviceListener710Test.java @@ -17,10 +17,10 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import com.google.common.collect.ImmutableList; -import org.junit.Test; -import org.junit.runner.RunWith; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.Mock; -import org.mockito.junit.MockitoJUnitRunner; +import org.mockito.junit.jupiter.MockitoExtension; import org.opendaylight.transportpce.common.mapping.PortMapping; import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.portmapping.rev220316.mapping.Mapping; import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev200529.ChangeNotification; @@ -35,13 +35,13 @@ import org.opendaylight.yang.gen.v1.http.org.openroadm.device.rev200529.org.open import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.netconf.base._1._0.rev110601.EditOperationType; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; -@RunWith(MockitoJUnitRunner.StrictStubs.class) +@ExtendWith(MockitoExtension.class) public class DeviceListener710Test { @Mock private PortMapping portMapping; @Test - public void testOnChangeNotificationWhenPortUpdated() throws InterruptedException { + void testOnChangeNotificationWhenPortUpdated() throws InterruptedException { ChangeNotification notification = mock(ChangeNotification.class); Mapping oldMapping = mock(Mapping.class); ImmutableList editList = createEditList(); @@ -56,7 +56,7 @@ public class DeviceListener710Test { } @Test - public void testOnChangeNotificationWhenNoEditList() { + void testOnChangeNotificationWhenNoEditList() { ChangeNotification notification = mock(ChangeNotification.class); when(notification.getEdit()).thenReturn(null); DeviceListener710 listener = new DeviceListener710("node1", portMapping); @@ -66,7 +66,7 @@ public class DeviceListener710Test { } @Test - public void testOnChangeNotificationWhenOtherthingUpdated() { + void testOnChangeNotificationWhenOtherthingUpdated() { ChangeNotification notification = mock(ChangeNotification.class); ImmutableList editList = createBadEditList(); when(notification.getEdit()).thenReturn(editList);