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%2Ftest%2FAbstractBodyReaderTest.java;h=f0c3889d714bf688872809aef0189f4462a89c6e;hb=b49fc5fd7940c9072cac55c770b3ebe9219ff73e;hp=fe32b1c69cb4ba8e0a5160be567797c583cc1f1e;hpb=d619eedb10aded59b4196b83e4b6d0841b6364bd;p=netconf.git diff --git a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/AbstractBodyReaderTest.java b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/AbstractBodyReaderTest.java index fe32b1c69c..f0c3889d71 100644 --- a/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/AbstractBodyReaderTest.java +++ b/restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/jersey/providers/test/AbstractBodyReaderTest.java @@ -38,10 +38,14 @@ import org.opendaylight.restconf.nb.rfc8040.jersey.providers.spi.AbstractIdentif import org.opendaylight.restconf.nb.rfc8040.legacy.NormalizedNodePayload; import org.opendaylight.yangtools.yang.common.ErrorTag; import org.opendaylight.yangtools.yang.common.ErrorType; +import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier; import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext; public abstract class AbstractBodyReaderTest { + protected static final QName CONT_AUG_QNAME = QName.create("test-ns-aug", "container-aug").intern(); + protected static final QName LEAF_AUG_QNAME = QName.create("test-ns-aug", "leaf-aug").intern(); + protected final MediaType mediaType; protected final SchemaContextHandler schemaContextHandler; protected final DOMMountPointService mountPointService; @@ -53,7 +57,7 @@ public abstract class AbstractBodyReaderTest { schemaContextHandler = TestUtils.newSchemaContextHandler(schemaContext); mountPointService = mock(DOMMountPointService.class); - final DOMMountPoint mountPoint = mock(DOMMountPoint.class); + final var mountPoint = mock(DOMMountPoint.class); doReturn(Optional.of(mountPoint)).when(mountPointService).getMountPoint(any(YangInstanceIdentifier.class)); doReturn(Optional.of(FixedDOMSchemaService.of(schemaContext))).when(mountPoint) .getService(DOMSchemaService.class);