diff options
author | 2019-04-02 09:17:33 +0000 | |
---|---|---|
committer | 2019-04-02 09:17:33 +0000 | |
commit | 988fa778eb2415a7ae8f1b30df67ebc38eee4665 (patch) | |
tree | 51c562886d34e7f6ede400e4c538e597984c94e3 /src/test/java/utils/EventUtils.java | |
parent | a7da4421da0595dfadf6853f96b2d5f04ff35ec2 (diff) |
Fix mapping issue with type C files
Change-Id: I698b84989dc928a09ff5e1c54adf236edd40b622
Issue-ID: DCAEGEN2-1038
Signed-off-by: emartin <ephraim.martin@est.tech>
Diffstat (limited to 'src/test/java/utils/EventUtils.java')
-rw-r--r-- | src/test/java/utils/EventUtils.java | 5 |
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; } |