- public void testDeleteConfigurationData() throws UnsupportedEncodingException, FileNotFoundException {
- String uri2 = createUri("/config/", "test-interface:interfaces");
-
- RpcResult<TransactionStatus> rpcResult = new DummyRpcResult.Builder<TransactionStatus>().result(
- TransactionStatus.COMMITED).build();
- Future<RpcResult<TransactionStatus>> dummyFuture = DummyFuture.builder().rpcResult(rpcResult).build();
- when(brokerFacade.commitConfigurationDataDelete(any(InstanceIdentifier.class))).thenReturn(dummyFuture);
-
- Response response = target(uri2).request(MEDIA_TYPE_DRAFT02).delete();
+ public void deleteConfigStatusCodes() throws UnsupportedEncodingException {
+ String uri = "/config/test-interface:interfaces";
+ when(brokerFacade.commitConfigurationDataDelete(any(YangInstanceIdentifier.class))).thenReturn(
+ mock(CheckedFuture.class));
+ Response response = target(uri).request(MediaType.APPLICATION_XML).delete();