* 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);
}
* @throws Exception if an error occurs
*/
@Test
- public final void testJsonEncodeDecode_WithNullAssignments() throws Exception {
+ final void testJsonEncodeDecode_WithNullAssignments() throws Exception {
setNullAssignments(true);
testJsonEncodeDecode();
}
* @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);