X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=restconf%2Fsal-rest-connector%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frest%2Fimpl%2Ftest%2Fproviders%2FAbstractBodyReaderTest.java;h=f1a6f0f497107543b08128e339dfc9b3bdd1df42;hb=56502011b5105fee20ce11ca743b4a79316ed594;hp=a366ce29b0329cdc26cb809e860bd155befd4d03;hpb=65e2d741916b9f51735119fa636756cc6395103f;p=netconf.git diff --git a/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/AbstractBodyReaderTest.java b/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/AbstractBodyReaderTest.java index a366ce29b0..f1a6f0f497 100644 --- a/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/AbstractBodyReaderTest.java +++ b/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/AbstractBodyReaderTest.java @@ -25,12 +25,12 @@ import org.opendaylight.netconf.sal.rest.api.RestconfConstants; import org.opendaylight.netconf.sal.rest.impl.AbstractIdentifierAwareJaxRsProvider; import org.opendaylight.netconf.sal.restconf.impl.ControllerContext; import org.opendaylight.netconf.sal.restconf.impl.NormalizedNodeContext; -import org.opendaylight.netconf.sal.restconf.impl.PATCHContext; +import org.opendaylight.netconf.sal.restconf.impl.PatchContext; import org.opendaylight.yangtools.yang.model.api.SchemaContext; public abstract class AbstractBodyReaderTest { - protected final static ControllerContext controllerContext = ControllerContext.getInstance(); + protected static final ControllerContext CONTROLLER_CONTEXT = ControllerContext.getInstance(); protected final MediaType mediaType; private static Field uriField; private static Field requestField; @@ -53,8 +53,8 @@ public abstract class AbstractBodyReaderTest { return TestRestconfUtils.loadSchemaContext(yangPath, schemaContext); } - protected static void mockBodyReader(final String identifier, - final T normalizedNodeProvider, final boolean isPost) throws Exception { + protected static void mockBodyReader( + final String identifier, final T normalizedNodeProvider, final boolean isPost) throws Exception { final UriInfo uriInfoMock = mock(UriInfo.class); final MultivaluedMap pathParm = new MultivaluedHashMap<>(1); @@ -94,15 +94,15 @@ public abstract class AbstractBodyReaderTest { assertNotNull(nnContext.getInstanceIdentifierContext().getSchemaNode()); } - protected static void checkPATCHContext(final PATCHContext patchContext) { + protected static void checkPatchContext(final PatchContext patchContext) { assertNotNull(patchContext.getData()); assertNotNull(patchContext.getInstanceIdentifierContext().getInstanceIdentifier()); assertNotNull(patchContext.getInstanceIdentifierContext().getSchemaContext()); assertNotNull(patchContext.getInstanceIdentifierContext().getSchemaNode()); } - protected static void checkPATCHContextMountPoint(final PATCHContext patchContext) { - checkPATCHContext(patchContext); + protected static void checkPatchContextMountPoint(final PatchContext patchContext) { + checkPatchContext(patchContext); assertNotNull(patchContext.getInstanceIdentifierContext().getMountPoint()); assertNotNull(patchContext.getInstanceIdentifierContext().getMountPoint().getSchemaContext()); }