2 * Copyright (c) 2023 PANTHEON.tech, s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.restconf.nb.rfc8040.jersey.providers.patch;
10 import static org.junit.Assert.assertNotNull;
12 import org.opendaylight.restconf.common.patch.PatchContext;
13 import org.opendaylight.restconf.nb.rfc8040.jersey.providers.test.AbstractBodyReaderTest;
15 abstract class AbstractPatchBodyReaderTest extends AbstractBodyReaderTest {
17 static final void checkPatchContext(final PatchContext patchContext) {
18 assertNotNull(patchContext.getData());
20 final var iid = patchContext.getInstanceIdentifierContext();
23 assertNotNull(iid.getInstanceIdentifier());
24 assertNotNull(iid.getSchemaContext());
25 assertNotNull(iid.getSchemaNode());
28 static final void checkPatchContextMountPoint(final PatchContext patchContext) {
29 checkPatchContext(patchContext);
30 assertNotNull(patchContext.getInstanceIdentifierContext().getMountPoint());