public void testDescendingMap() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> descendingMap = map.descendingMap(); assertTrue(descendingMap instanceof SynchronizedNavigableMap); assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) descendingMap).mutex); }
public void testHeadMap_K_B() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> headMap = map.headMap("a", true); assertTrue(headMap instanceof SynchronizedNavigableMap); assertSame( mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex); }
public void testSubMap_K_B_K_B() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); assertTrue(subMap instanceof SynchronizedNavigableMap); assertSame( mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); }
public void testTailMap_K_B() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> subMap = map.tailMap("a", true); assertTrue(subMap instanceof SynchronizedNavigableMap); assertSame( mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); }
public void testHeadMap_K_B() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> headMap = map.headMap("a", true); assertTrue(headMap instanceof SynchronizedNavigableMap); assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) headMap).mutex); }
public void testSubMap_K_B_K_B() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> subMap = map.subMap("a", true, "b", false); assertTrue(subMap instanceof SynchronizedNavigableMap); assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); }
public void testTailMap_K_B() { NavigableMap<String, Integer> map = create(); NavigableMap<String, Integer> subMap = map.tailMap("a", true); assertTrue(subMap instanceof SynchronizedNavigableMap); assertSame(mutex, ((SynchronizedNavigableMap<String, Integer>) subMap).mutex); }