Merge "Convert models to JUnit 5"
[policy/models.git] / models-interactions / model-impl / so / src / test / java / org / onap / policy / so / SoServiceExceptionHolderTest.java
index 981db65..ac94dd2 100644 (file)
@@ -3,7 +3,7 @@
  * so
  * ================================================================================
  * Copyright (C) 2017-2020 AT&T Intellectual Property. All rights reserved.
- * Modifications Copyright (C) 2019 Nordix Foundation.
+ * Modifications Copyright (C) 2019, 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.so;
 
-import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertNotNull;
+import static org.junit.jupiter.api.Assertions.assertNull;
 
-import org.junit.Test;
+import org.junit.jupiter.api.Test;
 
-public class SoServiceExceptionHolderTest {
+class SoServiceExceptionHolderTest {
 
     @Test
-    public void testConstructor() {
+    void testConstructor() {
         SoServiceExceptionHolder obj = new SoServiceExceptionHolder();
 
         assertNull(obj.getMessageId());
@@ -40,7 +40,7 @@ public class SoServiceExceptionHolderTest {
     }
 
     @Test
-    public void testSetGet() {
+    void testSetGet() {
         SoServiceExceptionHolder obj = new SoServiceExceptionHolder();
 
         obj.setMessageId("messageId");