Add PhysAddress support
[mdsal.git] / model / ietf / ietf-type-util / src / test / java / org / opendaylight / mdsal / model / ietf / util / AbstractIetfYangUtilTest.java
index fa9484e7a4d687e9ff301af416d26e52fda85752..a9e5b7bf49df247268c62fe827b2f3e9d2076ef7 100644 (file)
@@ -9,7 +9,6 @@
 package org.opendaylight.mdsal.model.ietf.util;
 
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertTrue;
 import static org.junit.Assert.fail;
 
@@ -38,8 +37,7 @@ public class AbstractIetfYangUtilTest {
 
     @Test
     public void canonizeMACTest() throws Exception {
-        assertFalse(UTIL.canonizeMacAddress(new MacClass("01:02:1E:5A:FB:88")).getValue()
-                .equals(UTIL.canonizeMacAddress(new MacClass(CANON)).getValue()));
+        assertEquals(CANON, UTIL.canonizeMacAddress(new MacClass("01:02:1E:5A:FB:88")).getValue());
     }
 
     @Test(expected = IllegalArgumentException.class)
@@ -47,4 +45,4 @@ public class AbstractIetfYangUtilTest {
         AbstractIetfYangUtil.hexValue(Character.highSurrogate(1000));
         fail("Expected invalid character exception");
     }
-}
\ No newline at end of file
+}