import org.opendaylight.restconf.nb.rfc8040.handlers.TransactionChainHandler;
import org.opendaylight.restconf.nb.rfc8040.streams.listeners.ListenerAdapter;
import org.opendaylight.restconf.nb.rfc8040.streams.listeners.ListenersBroker;
+import org.opendaylight.restconf.nb.rfc8040.utils.RestconfConstants;
import org.opendaylight.restconf.nb.rfc8040.utils.parser.IdentifierCodec;
import org.opendaylight.yang.gen.v1.urn.sal.restconf.event.subscription.rev140708.NotificationOutputTypeGrouping.NotificationOutputType;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
when(uriInfo.getBaseUriBuilder()).thenReturn(baseUriBuilder);
final URI uri = new URI("http://127.0.0.1/" + URI);
when(uriInfo.getAbsolutePath()).thenReturn(uri);
- this.schemaHandler.onGlobalContextUpdated(
+ this.schemaHandler.onModelContextUpdated(
YangParserTestUtils.parseYangFiles(TestRestconfUtils.loadFiles("/notifications")));
}
.subscribeToStream(
"data-change-event-subscription/toaster:toaster/toasterStatus/datastore=OPERATIONAL/scope=ONE",
this.uriInfo);
- assertEquals(
- "ws://localhost:8181/data-change-event-subscription"
- + "/toaster:toaster/toasterStatus/datastore=OPERATIONAL/scope=ONE",
- response.getNewHeaders().get("Location").toString());
+ assertEquals("ws://localhost:8181/" + RestconfConstants.BASE_URI_PATTERN
+ + "/data-change-event-subscription/toaster:toaster/toasterStatus/"
+ + "datastore=OPERATIONAL/scope=ONE", response.getNewHeaders().get("Location").toString());
}
@Test(expected = RestconfDocumentedException.class)