summaryrefslogtreecommitdiffstats
path: root/src/test/java/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/java/utils')
-rw-r--r--src/test/java/utils/EventUtils.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/java/utils/EventUtils.java b/src/test/java/utils/EventUtils.java
index a6b131c..eae050d 100644
--- a/src/test/java/utils/EventUtils.java
+++ b/src/test/java/utils/EventUtils.java
@@ -36,6 +36,7 @@ import java.util.stream.Stream;
import org.onap.dcaegen2.services.pmmapper.model.Event;
import org.onap.dcaegen2.services.pmmapper.model.EventMetadata;
+import org.onap.dcaegen2.services.pmmapper.model.MeasCollecFile;
public class EventUtils {
@@ -81,7 +82,9 @@ public class EventUtils {
* @return event with mock HttpServerExchange
*/
public static Event makeMockEvent(String body, EventMetadata eventMetadata) {
- return new Event(mock(HttpServerExchange.class, RETURNS_DEEP_STUBS), body, eventMetadata, new HashMap<>(), "");
+ Event event = new Event(mock(HttpServerExchange.class, RETURNS_DEEP_STUBS), body, eventMetadata, new HashMap<>(), "");
+ event.setMeasCollecFile(new MeasCollecFile());
+ return event;
}