- * Tests {@link RestconfImpl#readData() readAllData()} method of
- * RestconfImpl with url {@code "/datastore/ identifier}"}. Status codes 200
- * is tested.
- */
- @Test
- public void getDatastoreDataViaUrlTest200() throws FileNotFoundException, UnsupportedEncodingException {
- mockReadOperationalDataMethod();
- getDataWithUrl("/datastore/", Draft01.MediaTypes.DATA + JSON, 200);
- getDataWithUrl("/datastore/", Draft01.MediaTypes.DATA + XML, 200);
- getDataWithUrl("/datastore/", MediaType.APPLICATION_JSON, 200);
- getDataWithUrl("/datastore/", MediaType.APPLICATION_XML, 200);
- getDataWithUrl("/datastore/", MediaType.TEXT_XML, 200);
- }
-
- /**
- * Tests {@link RestconfImpl#readData() readAllData()} method of
- * RestconfImpl with url {@code "/datastore/ identifier}"}. Status codes 400
- * is tested.
- */
- @Test
- public void getDatastoreDataViaUrlTest400() throws FileNotFoundException, UnsupportedEncodingException {
- mockReadOperationalDataMethod();
- getDataWithUrl("/datastore/", Draft01.MediaTypes.DATA + JSON, 400);
- getDataWithUrl("/datastore/", Draft01.MediaTypes.DATA + XML, 400);
- getDataWithUrl("/datastore/", MediaType.APPLICATION_JSON, 400);
- getDataWithUrl("/datastore/", MediaType.APPLICATION_XML, 400);
- getDataWithUrl("/datastore/", MediaType.TEXT_XML, 400);
- }
-
- /**
- * Tests {@link RestconfImpl#readOperationalData(String)
- * readOperationalData(String)} method of RestconfImpl with url
- * {@code "/operational/...identifier..."}. Status codes 200 is tested.