Migrate common/util to JUnit5
[yangtools.git] / common / util / src / test / java / org / opendaylight / yangtools / util / PropertyUtilsTest.java
index 81661131f395baa72cdbada2540a74a132a88140..c22daba4daca440d202f09e7046b223376571c22 100644 (file)
@@ -7,15 +7,14 @@
  */
 package org.opendaylight.yangtools.util;
 
-import static org.junit.Assert.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;
 
-import org.junit.Test;
-
-public class PropertyUtilsTest {
+import org.junit.jupiter.api.Test;
 
+class PropertyUtilsTest {
     @Test
-    public void testGetIntSystemProperty() {
-        final int testValue = PropertyUtils.getIntSystemProperty("file.separator", 1);
-        assertEquals("Property value should be '1'.", 1, testValue);
+    void testGetIntSystemProperty() {
+        final var testValue = PropertyUtils.getIntSystemProperty("file.separator", 1);
+        assertEquals(1, testValue, "Property value should be '1'.");
     }
 }