* 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");
}
@Test
- public void testGetChannel_testSetChannel() {
+ void testGetChannel_testSetChannel() {
Message msg = new Message();
msg.setChannel("hello");
}
@Test
- public void testCheckValidity_InvalidFields() {
+ void testCheckValidity_InvalidFields() {
// null or empty source
expectCheckValidityFailure_NullOrEmpty((msg, value) -> msg.setSource(value));