Commit 0e2bc4fb authored by Dr. Martin Goik's avatar Dr. Martin Goik

assertNull simplification

parent c7ad7f34
...@@ -23,7 +23,7 @@ public class MetaInfoUnixTest { ...@@ -23,7 +23,7 @@ public class MetaInfoUnixTest {
Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive); Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive);
Assert.assertEquals("/usr/openvpn", fmi.path); Assert.assertEquals("/usr/openvpn", fmi.path);
Assert.assertEquals("hdm", fmi.basename); Assert.assertEquals("hdm", fmi.basename);
Assert.assertEquals(null, fmi.extension); Assert.assertNull(fmi.extension);
} }
@Test @Test
...@@ -49,7 +49,7 @@ public class MetaInfoUnixTest { ...@@ -49,7 +49,7 @@ public class MetaInfoUnixTest {
Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive); Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive);
Assert.assertEquals("../Desktop", fmi.path); Assert.assertEquals("../Desktop", fmi.path);
Assert.assertEquals("icon", fmi.basename); Assert.assertEquals("icon", fmi.basename);
Assert.assertEquals(null, fmi.extension); Assert.assertNull(fmi.extension);
} }
@Test @Test
...@@ -75,6 +75,6 @@ public class MetaInfoUnixTest { ...@@ -75,6 +75,6 @@ public class MetaInfoUnixTest {
Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive); Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive);
Assert.assertEquals("", fmi.path); Assert.assertEquals("", fmi.path);
Assert.assertEquals("a", fmi.basename); Assert.assertEquals("a", fmi.basename);
Assert.assertEquals(null, fmi.extension); Assert.assertNull(fmi.extension);
} }
} }
...@@ -23,7 +23,7 @@ public class MetaInfoWindowsTest { ...@@ -23,7 +23,7 @@ public class MetaInfoWindowsTest {
Assert.assertEquals('F', fmi.drive); Assert.assertEquals('F', fmi.drive);
Assert.assertEquals("\\software\\my", fmi.path); Assert.assertEquals("\\software\\my", fmi.path);
Assert.assertEquals("archive", fmi.basename); Assert.assertEquals("archive", fmi.basename);
Assert.assertEquals(null, fmi.extension); Assert.assertNull(fmi.extension);
} }
@Test @Test
...@@ -49,7 +49,7 @@ public class MetaInfoWindowsTest { ...@@ -49,7 +49,7 @@ public class MetaInfoWindowsTest {
Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive); Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive);
Assert.assertEquals("..\\Desktop", fmi.path); Assert.assertEquals("..\\Desktop", fmi.path);
Assert.assertEquals("icon", fmi.basename); Assert.assertEquals("icon", fmi.basename);
Assert.assertEquals(null, fmi.extension); Assert.assertNull(fmi.extension);
} }
@Test @Test
...@@ -74,7 +74,7 @@ public class MetaInfoWindowsTest { ...@@ -74,7 +74,7 @@ public class MetaInfoWindowsTest {
Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive); Assert.assertEquals(FileMetaInfo.NO_DRIVE, fmi.drive);
Assert.assertEquals("", fmi.path); Assert.assertEquals("", fmi.path);
Assert.assertEquals("a", fmi.basename); Assert.assertEquals("a", fmi.basename);
Assert.assertEquals(null, fmi.extension); Assert.assertNull(fmi.extension);
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment