X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Frestconf-nb-rfc8040%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Frestconf%2Fnb%2Frfc8040%2Fjersey%2Fproviders%2Fpatch%2FJsonPatchBodyReaderTest.java;h=770746ce81f8df7ba6d6307ff3ed18356c85f312;hb=b121b01510163f7182432c2de8341702ec960b8b;hp=d47534b5339e63361438354c421525798090d305;hpb=01a6df747b35181b5cb7a1a8cf7bdd8ecd511ef6;p=netconf.git diff --git a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/JsonPatchBodyReaderTest.java b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/JsonPatchBodyReaderTest.java index d47534b533..770746ce81 100644 --- a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/JsonPatchBodyReaderTest.java +++ b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/patch/JsonPatchBodyReaderTest.java @@ -21,7 +21,6 @@ import org.junit.Test; import org.opendaylight.controller.md.sal.dom.api.DOMMountPointService; import org.opendaylight.restconf.common.errors.RestconfDocumentedException; import org.opendaylight.restconf.common.patch.PatchContext; -import org.opendaylight.restconf.nb.rfc8040.handlers.SchemaContextHandler; import org.opendaylight.restconf.nb.rfc8040.jersey.providers.test.AbstractBodyReaderTest; import org.opendaylight.restconf.nb.rfc8040.jersey.providers.test.JsonBodyReaderTest; import org.opendaylight.yangtools.yang.model.api.SchemaContext; @@ -32,7 +31,8 @@ public class JsonPatchBodyReaderTest extends AbstractBodyReaderTest { private static SchemaContext schemaContext; public JsonPatchBodyReaderTest() throws Exception { - jsonToPatchBodyReader = new JsonToPatchBodyReader(); + super(schemaContext); + jsonToPatchBodyReader = new JsonToPatchBodyReader(schemaContextHandler); } @Override @@ -44,7 +44,6 @@ public class JsonPatchBodyReaderTest extends AbstractBodyReaderTest { public static void initialization() { schemaContext = schemaContextLoader("/instanceidentifier/yang", schemaContext); when(MOUNT_POINT_SERVICE_HANDLER.get()).thenReturn(mock(DOMMountPointService.class)); - SchemaContextHandler.setActualSchemaContext(schemaContext); } @Test