From 988fa778eb2415a7ae8f1b30df67ebc38eee4665 Mon Sep 17 00:00:00 2001 From: emartin Date: Tue, 2 Apr 2019 09:17:33 +0000 Subject: Fix mapping issue with type C files Change-Id: I698b84989dc928a09ff5e1c54adf236edd40b622 Issue-ID: DCAEGEN2-1038 Signed-off-by: emartin --- src/test/java/utils/EventUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/test/java/utils') 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; } -- cgit 1.2.3-korg