Removing deprecated DMAAP library
[policy/drools-pdp.git] / policy-utils / src / test / java / org / onap / policy / drools / utils / ReferenceTest.java
index 8afe462..c8c08d9 100644 (file)
@@ -3,6 +3,7 @@
  * ONAP
  * ================================================================================
  * Copyright (C) 2018 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.drools.utils;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
-import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertNull;
+import static org.junit.jupiter.api.Assertions.assertTrue;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
-public class ReferenceTest {
+class ReferenceTest {
 
     @Test
-    public void testReference() {
+    void testReference() {
         Reference<Integer> val = new Reference<>(null);
         assertNull(val.get());
 
@@ -39,7 +40,7 @@ public class ReferenceTest {
     }
 
     @Test
-    public void testGet_testSet() {
+    void testGet_testSet() {
         Reference<Integer> val = new Reference<>(null);
         assertNull(val.get());
 
@@ -51,7 +52,7 @@ public class ReferenceTest {
     }
 
     @Test
-    public void testCompareAndSet() {
+    void testCompareAndSet() {
         Reference<Integer> val = new Reference<>(null);
 
         Integer valCompare = 100;