Use HexFormat instead of home-grown formatting
[mdsal.git] / model / ietf / ietf-type-util / src / test / java / org / opendaylight / mdsal / model / ietf / util / AbstractIetfYangUtilTest.java
index 4bd7a77777a45eef889c295e807fc6e18bff0806..46458bf9c0673ba7fc7088eb18a680b0f03af926 100644 (file)
@@ -9,7 +9,6 @@ package org.opendaylight.mdsal.model.ietf.util;
 
 import static org.junit.Assert.assertArrayEquals;
 import static org.junit.Assert.assertEquals;
-import static org.junit.Assert.assertThrows;
 
 import java.util.UUID;
 import org.junit.Test;
@@ -94,11 +93,4 @@ public class AbstractIetfYangUtilTest {
     public void canonizeMACTest() {
         assertEquals(CANON, UTIL.canonizeMacAddress(new MacClass("01:02:1E:5A:FB:88")).getValue());
     }
-
-    @Test
-    public void hexValueWithExceptionTest() {
-        final IllegalArgumentException ex = assertThrows(IllegalArgumentException.class,
-            () -> AbstractIetfYangUtil.hexValue(Character.highSurrogate(1000)));
-        assertEquals("Invalid character 'ퟀ' encountered", ex.getMessage());
-    }
 }