Removing deprecated DMAAP library
[policy/drools-pdp.git] / feature-pooling-messages / src / test / java / org / onap / policy / drools / pooling / message / MessageTest.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 static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNull;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
-public class MessageTest extends SupportBasicMessageTester<Message> {
+class MessageTest extends SupportBasicMessageTester<Message> {
 
     public MessageTest() {
         super(Message.class);
     }
 
     @Test
-    public void testGetSource_testSetSource() {
+    void testGetSource_testSetSource() {
         Message msg = new Message();
 
         msg.setSource("hello");
@@ -45,7 +46,7 @@ public class MessageTest extends SupportBasicMessageTester<Message> {
     }
 
     @Test
-    public void testGetChannel_testSetChannel() {
+    void testGetChannel_testSetChannel() {
         Message msg = new Message();
 
         msg.setChannel("hello");
@@ -58,7 +59,7 @@ public class MessageTest extends SupportBasicMessageTester<Message> {
     }
 
     @Test
-    public void testCheckValidity_InvalidFields() {
+    void testCheckValidity_InvalidFields() {
         // null or empty source
         expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setSource(value));