X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Futil%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Futil%2FMapAdaptorTest.java;h=3b0cbb7b586a4b9dbefcccc1d025fcbdb87fd032;hb=refs%2Fchanges%2F09%2F42509%2F1;hp=e4ae622121118a1cc28cb9e2ffe7f4ce1c7390d4;hpb=91b09c4c9004c51c2a221b4c3af2a34d8b76da20;p=yangtools.git diff --git a/common/util/src/test/java/org/opendaylight/yangtools/util/MapAdaptorTest.java b/common/util/src/test/java/org/opendaylight/yangtools/util/MapAdaptorTest.java index e4ae622121..3b0cbb7b58 100644 --- a/common/util/src/test/java/org/opendaylight/yangtools/util/MapAdaptorTest.java +++ b/common/util/src/test/java/org/opendaylight/yangtools/util/MapAdaptorTest.java @@ -12,11 +12,11 @@ import static org.junit.Assert.assertNotSame; import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; +import com.google.common.collect.ImmutableMap; import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.TreeMap; - import org.junit.Before; import org.junit.Test; @@ -38,10 +38,10 @@ public class MapAdaptorTest { assertTrue(snap instanceof HashMap); final Map opt1 = adaptor.optimize(input); - assertSame(Collections.EMPTY_MAP, opt1); + assertSame(ImmutableMap.of(), opt1); final Map opt2 = adaptor.optimize(snap); - assertSame(Collections.EMPTY_MAP, opt2); + assertSame(ImmutableMap.of(), opt2); } @Test