diff options
author | Vijay Venkatesh Kumar <vv770d@att.com> | 2023-01-20 15:31:48 -0500 |
---|---|---|
committer | Vijay Venkatesh Kumar <vv770d@att.com> | 2023-01-28 23:52:44 +0000 |
commit | 952fa4a24a47b648b68f6d86b73e2cc05e044d46 (patch) | |
tree | 118426f33532e42c4774e8e2f7bc4e6ef89b6536 /src/test/java/org/onap/dcae/common/model/VesEventTest.java | |
parent | 3c31bdcdf18aff4bf755058e2d32e153d8216eb5 (diff) |
VESCollector Test optimization
Fix test failure in win
Add check for docker\linux dependency on related test
Change-Id: I5be1fa860a69fc6479d9c0b202eabbb0336ea0c4
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Issue-ID: DCAEGEN2-3334
Signed-off-by: Vijay Venkatesh Kumar <vv770d@att.com>
Diffstat (limited to 'src/test/java/org/onap/dcae/common/model/VesEventTest.java')
-rw-r--r-- | src/test/java/org/onap/dcae/common/model/VesEventTest.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/test/java/org/onap/dcae/common/model/VesEventTest.java b/src/test/java/org/onap/dcae/common/model/VesEventTest.java index c66e0a9b..be0cf088 100644 --- a/src/test/java/org/onap/dcae/common/model/VesEventTest.java +++ b/src/test/java/org/onap/dcae/common/model/VesEventTest.java @@ -2,7 +2,8 @@ * ============LICENSE_START======================================================= * VES Collector * ================================================================================ - * Copyright (C) 2020 Nokia. All rights reserved.s + * Copyright (C) 2020 Nokia. All rights reserved. + * Copyright (C) 2023 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,6 +26,7 @@ import org.junit.Test; import org.onap.dcae.common.JsonDataLoader; import java.io.IOException; +import java.net.URISyntaxException; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; @@ -36,7 +38,7 @@ public class VesEventTest { private static final String STND_DEFINED_STREAM_ID = "3GPP-FaultSupervision"; @Test - public void shouldReturnsOriginalDomainForNonStdEvent() throws IOException { + public void shouldReturnsOriginalDomainForNonStdEvent() throws IOException, URISyntaxException { // given final VesEvent vesEvent = createVesEvent("/eventsAfterTransformation/ves7_valid_event.json"); @@ -46,7 +48,7 @@ public class VesEventTest { } @Test - public void shouldReturnsDomainStoredInStndDefinedNamespaceParameterForNonStdEvent() throws IOException { + public void shouldReturnsDomainStoredInStndDefinedNamespaceParameterForNonStdEvent() throws IOException, URISyntaxException { // given final VesEvent vesEvent = createVesEvent("/eventsAfterTransformation/ves_stdnDefined_valid.json"); @@ -57,7 +59,7 @@ public class VesEventTest { @Test - public void shouldReportThatStndDefinedNamespaceParameterIsNotDefinedInEvent() throws IOException { + public void shouldReportThatStndDefinedNamespaceParameterIsNotDefinedInEvent() throws IOException, URISyntaxException { // given final VesEvent vesEvent = createVesEvent( "/eventsAfterTransformation/ves_stdnDefined_missing_namespace_invalid.json" @@ -72,7 +74,7 @@ public class VesEventTest { } @Test - public void shouldReportThatStndDefinedNamespaceParameterHasEmptyValue() throws IOException { + public void shouldReportThatStndDefinedNamespaceParameterHasEmptyValue() throws IOException, URISyntaxException { // given final VesEvent vesEvent = createVesEvent( "/eventsAfterTransformation/ves_stdnDefined_empty_namespace_invalid.json" @@ -85,7 +87,7 @@ public class VesEventTest { }); } - private VesEvent createVesEvent(String path) throws IOException { + private VesEvent createVesEvent(String path) throws IOException, URISyntaxException { String event = JsonDataLoader.loadContent(path); return new VesEvent(new JSONObject(event)); } |