Add unit test cases
[vfc/nfvo/driver/vnfm/svnfm.git] / nokia / vnfmdriver / vfcadaptorservice / vfcadaptor / src / test / java / org / onap / vfc / nfvo / driver / vnfm / svnfm / vnfmdriver / controller / VnfmDriverControllerTest.java
index 97659a7..103b394 100644 (file)
@@ -288,12 +288,12 @@ public class VnfmDriverControllerTest {
        public void testCreateSubscripiton() throws Exception {
                CreateSubscriptionResponse mockResponse = new CreateSubscriptionResponse();
                mockResponse.setCallbackUri("callbackUri");
-               String jsonString = "{\"callbackUri\":\"callbackUri\",\"callbackUri\":\"callbackUrl\"," + "\"authentication\":{\"userName\":\"userName\",\"password\":\"password\",\"clientName\":\"clientName\"}}";
+               String jsonString = "{\"callbackUri\":\"callbackUri\"," + "\"authentication\":{\"userName\":\"userName\",\"password\":\"password\",\"clientName\":\"clientName\"}}";
                
                when(vnfmDriverMgmr.createSubscription(Mockito.any(CreateSubscriptionRequest.class))).thenReturn(mockResponse);
                
                String responseString = mockMvc.perform(
-                               post("/api/nokiavnfmdriver/v1/createSubscripiton").
+                               post("/api/nokiavnfmdriver/v1/createSubscription").
                                characterEncoding("UTF-8").
                                accept(MediaType.APPLICATION_JSON).
                                contentType(MediaType.APPLICATION_JSON).