import java.io.InputStream;
import javax.ws.rs.core.MediaType;
-import org.junit.BeforeClass;
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;
-import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
public class JsonPatchBodyReaderMountPointTest extends AbstractBodyReaderTest {
private static final String MOUNT_POINT = "instance-identifier-module:cont/yang-ext:mount/";
- private static EffectiveModelContext schemaContext;
private final JsonPatchBodyReader jsonToPatchBodyReader;
public JsonPatchBodyReaderMountPointTest() {
- super(schemaContext);
jsonToPatchBodyReader = new JsonPatchBodyReader(databindProvider, mountPointService);
}
return new MediaType(APPLICATION_JSON, null);
}
- @BeforeClass
- public static void initialization() {
- schemaContext = schemaContextLoader("/instanceidentifier/yang", schemaContext);
- }
-
@Test
public void modulePatchDataTest() throws Exception {
final String uri = MOUNT_POINT + "instance-identifier-patch-module:patch-cont/my-list1=leaf1";