public void testHeadMap_K() { NavigableMap<String, Integer> map = create(); SortedMap<String, Integer> headMap = map.headMap("a"); assertTrue(headMap instanceof SynchronizedSortedMap); assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) headMap).mutex); }
public void testSubMap_K_K() { NavigableMap<String, Integer> map = create(); SortedMap<String, Integer> subMap = map.subMap("a", "b"); assertTrue(subMap instanceof SynchronizedSortedMap); assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); }
public void testTailMap_K() { NavigableMap<String, Integer> map = create(); SortedMap<String, Integer> subMap = map.tailMap("a"); assertTrue(subMap instanceof SynchronizedSortedMap); assertSame(mutex, ((SynchronizedSortedMap<String, Integer>) subMap).mutex); }