* ============LICENSE_START=======================================================
* Copyright (C) 2016-2018 Ericsson. All rights reserved.
* Modifications Copyright (C) 2020 Bell Canada. All rights reserved.
+ * Modifications Copyright (C) 2021, 2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package org.onap.policy.apex.testsuites.integration.uservice.adapt.events.syncasync;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
import java.io.File;
-import org.junit.After;
-import org.junit.Test;
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
-public class AsyncEventSimoTest extends BaseEventTest {
+class AsyncEventSimoTest extends TestEventBase {
private final String[] outFilePaths = {
"target/examples/events/SampleDomain/EventsOutMulti0.json",
"target/examples/events/SampleDomain/EventsOutMulti1.json",
/**
* Delete output files.
*/
- @After
- public void deleteOutputFiles() {
+ @AfterEach
+ void deleteOutputFiles() {
for (String filePath : outFilePaths) {
- new File(filePath).delete();
+ assertTrue(new File(filePath).delete());
}
}
@Test
- public void testJsonFileAsyncSimo() throws Exception {
+ void testJsonFileAsyncSimo() throws Exception {
final String[] args = {
"-rfr",
"target",