Fix bug throwing exception when first event is collected
[dcaegen2/collectors/ves.git] / src / test / java / org / onap / dcae / restapi / VesRestControllerTest.java
index 0a03c1a..ce7e09d 100644 (file)
@@ -315,9 +315,7 @@ public class VesRestControllerTest {
 
     private void configureHeadersForEventListener() {
         when(headerUtils.getRestApiIdentify(anyString())).thenReturn("eventListener");
-        when(headerUtils.getApiVerFilePath(anyString())).thenReturn(
-                this.getClass().getResource("/api_version_config.json").getPath()
-        );
+        when(applicationSettings.getApiVersionDescriptionFilepath()).thenReturn("etc/api_version_description.json");
     }
 
     private void verifyThatTransformedEventWasSend(DMaaPEventPublisher eventPublisher, String eventBeforeTransformation) {