Migrate servicehandler module to JUnit5
[transportpce.git] / servicehandler / src / test / java / org / opendaylight / transportpce / servicehandler / ServiceEndpointTypeTest.java
index c3209527c1094954e6d301efa9a48a151c4ff0a7..c6f53f1ee91ae359df88383ed0573a7731cd2d05 100644 (file)
@@ -7,21 +7,21 @@
  */
 package org.opendaylight.transportpce.servicehandler;
 
-import org.junit.Assert;
-import org.junit.Test;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
 
 public class ServiceEndpointTypeTest {
 
     @Test
-    public void testgetIntValue() {
-        Assert.assertEquals(1, ServiceEndpointType.SERVICEAEND.getIntValue());
-        Assert.assertEquals(2, ServiceEndpointType.SERVICEZEND.getIntValue());
+    void testgetIntValue() {
+        assertEquals(1, ServiceEndpointType.SERVICEAEND.getIntValue());
+        assertEquals(2, ServiceEndpointType.SERVICEZEND.getIntValue());
     }
 
     @Test
-    public void testForValue() {
-        Assert.assertEquals(ServiceEndpointType.SERVICEAEND, ServiceEndpointType.forValue(1));
-        Assert.assertEquals(ServiceEndpointType.SERVICEZEND, ServiceEndpointType.forValue(2));
+    void testForValue() {
+        assertEquals(ServiceEndpointType.SERVICEAEND, ServiceEndpointType.forValue(1));
+        assertEquals(ServiceEndpointType.SERVICEZEND, ServiceEndpointType.forValue(2));
     }
-
-}
+}
\ No newline at end of file