Convert models to JUnit 5
[policy/models.git] / models-interactions / model-impl / events / src / test / java / org / onap / policy / controlloop / CanonicalAbatedTest.java
index 5aa7497..a2d18ab 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP
  * ================================================================================
  * Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
+ * Modifications Copyright (C) 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.controlloop;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotEquals;
 
 import java.time.Instant;
 import java.util.UUID;
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
-public class CanonicalAbatedTest {
+class CanonicalAbatedTest {
 
     @Test
-    public void testConstructors() {
+    void testConstructors() {
         CanonicalAbated abated1 = new CanonicalAbated(new VirtualControlLoopEvent());
         abated1.setRequestId(UUID.randomUUID());
         abated1.setClosedLoopAlarmStart(Instant.now());