import javax.ws.rs.core.MediaType;
import org.junit.Test;
import org.opendaylight.restconf.common.errors.RestconfDocumentedException;
-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.common.ErrorTag;
-public class JsonPatchBodyReaderMountPointTest extends AbstractBodyReaderTest {
+public class JsonPatchBodyReaderMountPointTest extends AbstractPatchBodyReaderTest {
private static final String MOUNT_POINT = "instance-identifier-module:cont/yang-ext:mount/";
private final JsonPatchBodyReader jsonToPatchBodyReader;
mockBodyReader(uri, jsonToPatchBodyReader, false);
checkPatchContextMountPoint(jsonToPatchBodyReader.readFrom(null, null, null, mediaType, null,
- JsonBodyReaderTest.class.getResourceAsStream("/instanceidentifier/json/jsonPATCHdata.json")));
+ JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
+ "/instanceidentifier/json/jsonPATCHdata.json")));
}
/**
mockBodyReader(uri, jsonToPatchBodyReader, false);
checkPatchContextMountPoint(jsonToPatchBodyReader.readFrom(null, null, null, mediaType, null,
- JsonBodyReaderTest.class.getResourceAsStream(
+ JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
"/instanceidentifier/json/jsonPATCHdataCreateAndDelete.json")));
}
final String uri = MOUNT_POINT + "instance-identifier-patch-module:patch-cont/my-list1=leaf1";
mockBodyReader(uri, jsonToPatchBodyReader, false);
- final InputStream inputStream = JsonBodyReaderTest.class.getResourceAsStream(
+ final InputStream inputStream = JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
"/instanceidentifier/json/jsonPATCHdataValueMissing.json");
final RestconfDocumentedException ex = assertThrows(RestconfDocumentedException.class,
final String uri = MOUNT_POINT + "instance-identifier-patch-module:patch-cont/my-list1=leaf1";
mockBodyReader(uri, jsonToPatchBodyReader, false);
- final InputStream inputStream = JsonBodyReaderTest.class.getResourceAsStream(
+ final InputStream inputStream = JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
"/instanceidentifier/json/jsonPATCHdataValueNotSupported.json");
final RestconfDocumentedException ex = assertThrows(RestconfDocumentedException.class,
mockBodyReader(uri, jsonToPatchBodyReader, false);
checkPatchContextMountPoint(jsonToPatchBodyReader.readFrom(null, null, null, mediaType, null,
- JsonBodyReaderTest.class.getResourceAsStream(
+ JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
"/instanceidentifier/json/jsonPATCHdataCompleteTargetInURI.json")));
}
mockBodyReader(uri, jsonToPatchBodyReader, false);
checkPatchContextMountPoint(jsonToPatchBodyReader.readFrom(null, null, null, mediaType, null,
- JsonBodyReaderTest.class.getResourceAsStream(
+ JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
"/instanceidentifier/json/jsonPATCHMergeOperationOnList.json")));
}
mockBodyReader(uri, jsonToPatchBodyReader, false);
checkPatchContextMountPoint(jsonToPatchBodyReader.readFrom(null, null, null, mediaType, null,
- JsonBodyReaderTest.class.getResourceAsStream(
+ JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
"/instanceidentifier/json/jsonPATCHMergeOperationOnContainer.json")));
}
mockBodyReader(uri, jsonToPatchBodyReader, false);
checkPatchContext(jsonToPatchBodyReader.readFrom(null, null, null, mediaType, null,
- JsonBodyReaderTest.class.getResourceAsStream("/instanceidentifier/json/jsonPATCHSimpleLeafValue.json")));
+ JsonPatchBodyReaderMountPointTest.class.getResourceAsStream(
+ "/instanceidentifier/json/jsonPATCHSimpleLeafValue.json")));
}
}