Removing deprecated DMAAP library
[policy/drools-pdp.git] / feature-pooling-messages / src / test / java / org / onap / policy / drools / pooling / message / IdentificationTest.java
@@ -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.pooling.message;
 
-import org.junit.Before;
-import org.junit.Test;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
 
-public class IdentificationTest extends SupportMessageWithAssignmentsTester<Identification> {
+class IdentificationTest extends SupportMessageWithAssignmentsTester<Identification> {
 
     public IdentificationTest() {
         super(Identification.class);
     }
 
-    @Before
+    @BeforeEach
     public void setUp() {
         setNullAssignments(false);
     }
@@ -42,7 +43,7 @@ public class IdentificationTest extends SupportMessageWithAssignmentsTester<Iden
      * @throws Exception if an error occurs
      */
     @Test
-    public final void testJsonEncodeDecode_WithNullAssignments() throws Exception {
+    final void testJsonEncodeDecode_WithNullAssignments() throws Exception {
         setNullAssignments(true);
         testJsonEncodeDecode();
     }
@@ -55,7 +56,7 @@ public class IdentificationTest extends SupportMessageWithAssignmentsTester<Iden
      * @throws Exception if an error occurs
      */
     @Test
-    public void testCheckValidity_NullAssignments() throws Exception {
+    void testCheckValidity_NullAssignments() throws Exception {
         // null assignments are OK
         Identification msg = makeValidMessage();
         msg.setAssignments(null);