* 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());
}
@Test
- public void testGet_testSet() {
+ void testGet_testSet() {
Reference<Integer> val = new Reference<>(null);
assertNull(val.get());
}
@Test
- public void testCompareAndSet() {
+ void testCompareAndSet() {
Reference<Integer> val = new Reference<>(null);
Integer valCompare = 100;