X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=nbinotifications%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fnbinotifications%2Fimpl%2FNbiNotificationsImplTest.java;h=dc8fdeac0d6804ec11933c029b36186a722dd707;hb=274148a8d813140f86e1f9770ba992b072c1a5cd;hp=c121eb75a28c852bb7a4cd25420d353965700d8f;hpb=c3a98ef9475e9ce8ec866978df75394c3df639bf;p=transportpce.git diff --git a/nbinotifications/src/test/java/org/opendaylight/transportpce/nbinotifications/impl/NbiNotificationsImplTest.java b/nbinotifications/src/test/java/org/opendaylight/transportpce/nbinotifications/impl/NbiNotificationsImplTest.java index c121eb75a..dc8fdeac0 100644 --- a/nbinotifications/src/test/java/org/opendaylight/transportpce/nbinotifications/impl/NbiNotificationsImplTest.java +++ b/nbinotifications/src/test/java/org/opendaylight/transportpce/nbinotifications/impl/NbiNotificationsImplTest.java @@ -16,10 +16,12 @@ import org.junit.Test; import org.opendaylight.transportpce.common.converter.JsonStringConverter; import org.opendaylight.transportpce.test.AbstractTest; import org.opendaylight.yang.gen.v1.http.org.openroadm.common.service.types.rev190531.ConnectionType; -import org.opendaylight.yang.gen.v1.nbi.notifications.rev210628.GetNotificationsAlarmServiceInputBuilder; -import org.opendaylight.yang.gen.v1.nbi.notifications.rev210628.GetNotificationsAlarmServiceOutput; -import org.opendaylight.yang.gen.v1.nbi.notifications.rev210628.GetNotificationsServiceInputBuilder; -import org.opendaylight.yang.gen.v1.nbi.notifications.rev210628.GetNotificationsServiceOutput; +import org.opendaylight.yang.gen.v1.nbi.notifications.rev210813.GetNotificationsAlarmServiceInputBuilder; +import org.opendaylight.yang.gen.v1.nbi.notifications.rev210813.GetNotificationsAlarmServiceOutput; +import org.opendaylight.yang.gen.v1.nbi.notifications.rev210813.GetNotificationsProcessServiceInputBuilder; +import org.opendaylight.yang.gen.v1.nbi.notifications.rev210813.GetNotificationsProcessServiceOutput; +import org.opendaylight.yang.gen.v1.nbi.notifications.rev210813.NotificationAlarmService; +import org.opendaylight.yang.gen.v1.nbi.notifications.rev210813.NotificationProcessService; import org.opendaylight.yangtools.yang.common.RpcResult; public class NbiNotificationsImplTest extends AbstractTest { @@ -27,31 +29,30 @@ public class NbiNotificationsImplTest extends AbstractTest { @Before public void setUp() { - JsonStringConverter converter = new JsonStringConverter<>( + JsonStringConverter converter = new JsonStringConverter<>( getDataStoreContextUtil().getBindingDOMCodecServices()); - JsonStringConverter converterAlarm = new JsonStringConverter<>( + JsonStringConverter converterAlarm = new JsonStringConverter<>( getDataStoreContextUtil().getBindingDOMCodecServices()); nbiNotificationsImpl = new NbiNotificationsImpl(converter, converterAlarm,"localhost:8080"); } @Test public void getNotificationsServiceEmptyDataTest() throws InterruptedException, ExecutionException { - ListenableFuture> result = - nbiNotificationsImpl.getNotificationsService(new GetNotificationsServiceInputBuilder().build()); - assertNull("Should be null", result.get().getResult().getNotificationService()); + ListenableFuture> result = + nbiNotificationsImpl.getNotificationsProcessService( + new GetNotificationsProcessServiceInputBuilder().build()); + assertNull("Should be null", result.get().getResult().getNotificationsProcessService()); } @Test public void getNotificationsServiceTest() throws InterruptedException, ExecutionException { - GetNotificationsServiceInputBuilder builder = new GetNotificationsServiceInputBuilder() + GetNotificationsProcessServiceInputBuilder builder = new GetNotificationsProcessServiceInputBuilder() .setGroupId("groupId") .setIdConsumer("consumerId") .setConnectionType(ConnectionType.Service); - ListenableFuture> result = - nbiNotificationsImpl.getNotificationsService(builder.build()); - assertNull("Should be null", result.get().getResult().getNotificationService()); + ListenableFuture> result = + nbiNotificationsImpl.getNotificationsProcessService(builder.build()); + assertNull("Should be null", result.get().getResult().getNotificationsProcessService()); } @Test @@ -62,6 +63,6 @@ public class NbiNotificationsImplTest extends AbstractTest { .setConnectionType(ConnectionType.Service); ListenableFuture> result = nbiNotificationsImpl.getNotificationsAlarmService(builder.build()); - assertNull("Should be null", result.get().getResult().getNotificationAlarmService()); + assertNull("Should be null", result.get().getResult().getNotificationsAlarmService()); } }