- nbiNotificationsImpl.createNotificationSubscriptionService(builder.build());
- GetNotificationListInputBuilder builder1 = new GetNotificationListInputBuilder()
- .setTimeRange(null)
- .setSubscriptionId(result.get().getResult().getSubscriptionService().getUuid());
- ListenableFuture<RpcResult<GetNotificationListOutput>> result1 =
- nbiNotificationsImpl.getNotificationList(builder1.build());
- assertNull(result1.get().getResult().getNotification(), "Should be null");
+ new CreateNotificationSubscriptionServiceImpl(nbiNotificationsImpl, topicManager)
+ .invoke(NotificationServiceDataUtils.buildNotificationSubscriptionServiceInputBuilder().build());
+ ListenableFuture<RpcResult<GetNotificationListOutput>> result2 =
+ new GetNotificationListImpl(converterTapi, "localhost:8080", networkTransactionService, topicManager)
+ .invoke(new GetNotificationListInputBuilder()
+ .setTimeRange(null)
+ .setSubscriptionId(result.get().getResult().getSubscriptionService().getUuid())
+ .build());
+ assertNull(result2.get().getResult().getNotification(), "Should be null");