@Test public void testDeleteSubscription() throws Exception { mockMvc.perform(delete("/v1/contextSubscriptions/12345678")) .andExpect(status().isOk()); verify(ngsiController).unsubscribeContext(any()); }
@Override protected UnsubscribeContextResponse deleteSubscription(String subscriptionID) throws Exception { return ngsiController.unsubscribeContext(new UnsubscribeContext(subscriptionID)); }
NgsiRestController extends NgsiRestBaseController { @Override protected UnsubscribeContextResponse deleteSubscription(String subscriptionID) throws Exception { return ngsiController.unsubscribeContext(new UnsubscribeContext(subscriptionID)); } }
NgsiRestController extends NgsiRestBaseController { @Override protected UnsubscribeContextResponse deleteSubscription(String subscriptionID) throws Exception { return ngsiController.unsubscribeContext(new UnsubscribeContext(subscriptionID)); }  }
NgsiRestController extends NgsiRestBaseController { @Override protected UnsubscribeContextResponse deleteSubscription(String subscriptionID) throws Exception { return ngsiController.unsubscribeContext(new UnsubscribeContext(subscriptionID)); }   }
NgsiRestController extends NgsiRestBaseController { @Override protected UnsubscribeContextResponse deleteSubscription(String subscriptionID) throws Exception { return ngsiController.unsubscribeContext(new UnsubscribeContext(subscriptionID)); }    }