- * Test method
- * {@link RestconfImpl#updateConfigurationData(String, CompositeNode)} of
- * RestconfImpl for "/config/...identifier..." URL. Return status code is
- * 200.
- *
- */
- @Test
- public void putConfigDataViaUrlTest200() throws UnsupportedEncodingException {
- mockCommitConfigurationDataPutMethod(TransactionStatus.COMMITED);
- putDataViaUrlTest("/config/", Draft02.MediaTypes.DATA + JSON, jsonData, 200);
- putDataViaUrlTest("/config/", Draft02.MediaTypes.DATA + XML, xmlData, 200);
- putDataViaUrlTest("/config/", MediaType.APPLICATION_JSON, jsonData, 200);
- putDataViaUrlTest("/config/", MediaType.APPLICATION_XML, xmlData, 200);
- putDataViaUrlTest("/config/", MediaType.TEXT_XML, xmlData, 200);
-
- }
-
- /**
- * Test method
- * {@link RestconfImpl#updateConfigurationData(String, CompositeNode)} of
- * RestconfImpl for "/config/...identifier..." URL. Return status code is
- * 500.
- *
- */
- @Test
- public void putConfigDataViaUrlTest500() throws UnsupportedEncodingException {
- mockCommitConfigurationDataPutMethod(TransactionStatus.FAILED);
- putDataViaUrlTest("/config/", Draft02.MediaTypes.DATA + JSON, jsonData, 500);
- putDataViaUrlTest("/config/", Draft02.MediaTypes.DATA + XML, xmlData, 500);
- putDataViaUrlTest("/config/", MediaType.APPLICATION_JSON, jsonData, 500);
- putDataViaUrlTest("/config/", MediaType.APPLICATION_XML, xmlData, 500);
- putDataViaUrlTest("/config/", MediaType.TEXT_XML, xmlData, 500);
-
- }
-
- /**
- * Test method
- * {@link RestconfImpl#updateConfigurationData(String, CompositeNode)} of
- * RestconfImpl for "/datastore/...identifier..." URL. Return status code is
- * 200.
- *