Convert junit4 to junit5
[policy/apex-pdp.git] / testsuites / integration / integration-uservice-test / src / test / java / org / onap / policy / apex / testsuites / integration / uservice / adapt / events / syncasync / AsyncEventSimoTest.java
index c176b69..a73a27d 100644 (file)
@@ -2,6 +2,7 @@
  * ============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",
@@ -35,15 +38,15 @@ public class AsyncEventSimoTest extends BaseEventTest {
     /**
      * 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",