aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/onap/a1pesimulator/service/ves/RanVesHolderTest.java8
-rw-r--r--src/test/resources/application.properties1
2 files changed, 6 insertions, 3 deletions
diff --git a/src/test/java/org/onap/a1pesimulator/service/ves/RanVesHolderTest.java b/src/test/java/org/onap/a1pesimulator/service/ves/RanVesHolderTest.java
index 20cb392..7f6258c 100644
--- a/src/test/java/org/onap/a1pesimulator/service/ves/RanVesHolderTest.java
+++ b/src/test/java/org/onap/a1pesimulator/service/ves/RanVesHolderTest.java
@@ -130,12 +130,14 @@ class RanVesHolderTest extends CommonFileReady {
void getEventStructure() {
VesEvent testedEvent = loadEventFromFile();
ranCellsHolder.startSendingVesEvents(TEST_CELL_ID, testedEvent, 10, ReportingMethodEnum.FILE_READY);
- VesEvent event = ranCellsHolder.getEventStructure(TEST_CELL_ID);
- assertThat(event).isEqualTo(testedEvent);
+ RanPeriodicEvent event = ranCellsHolder.getPeriodicEventForCell(TEST_CELL_ID);
+ assertThat(event.getEvent()).isEqualTo(testedEvent);
+ assertThat(event.getInterval()).isEqualTo(10);
+ assertThat(event.getReportingMethod()).isEqualTo(ReportingMethodEnum.FILE_READY.getValue());
}
@Test
void getEventStructureError() {
- assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> ranCellsHolder.getEventStructure(TEST_CELL_ID));
+ assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() -> ranCellsHolder.getPeriodicEventForCell(TEST_CELL_ID));
}
} \ No newline at end of file
diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties
index ff09a40..77adba6 100644
--- a/src/test/resources/application.properties
+++ b/src/test/resources/application.properties
@@ -16,6 +16,7 @@ ves.collector.protocol=someProtocol
ves.collector.endpoint=/somePath
ves.pm.maxPoolSize=10
ves.defaultInterval=10
+ves.defaultReportingMethod=FILE_READY
ves.defaultFailureDuration=120
ves.failing.throughput=1
ves.failing.latency=500