public void testDescendingKeySet() { NavigableMap<String, Integer> map = create(); NavigableSet<String> descendingKeySet = map.descendingKeySet(); assertTrue(descendingKeySet instanceof SynchronizedNavigableSet); assertSame( mutex, ((SynchronizedNavigableSet<String>) descendingKeySet).mutex); }
public void testNavigableKeySet() { NavigableMap<String, Integer> map = create(); NavigableSet<String> navigableKeySet = map.navigableKeySet(); assertTrue(navigableKeySet instanceof SynchronizedNavigableSet); assertSame( mutex, ((SynchronizedNavigableSet<String>) navigableKeySet).mutex); }
public void testDescendingSet() { NavigableSet<String> set = create(); NavigableSet<String> descendingSet = set.descendingSet(); assertTrue(descendingSet instanceof SynchronizedNavigableSet); assertSame(set, ((SynchronizedNavigableSet<String>) descendingSet).mutex); }
public void testHeadSet_E_B() { NavigableSet<String> set = create(); NavigableSet<String> headSet = set.headSet("a", true); assertTrue(headSet instanceof SynchronizedNavigableSet); assertSame(set, ((SynchronizedNavigableSet<String>) headSet).mutex); }
public void testSubSet_E_B_E_B() { NavigableSet<String> set = create(); NavigableSet<String> subSet = set.subSet("a", false, "b", true); assertTrue(subSet instanceof SynchronizedNavigableSet); assertSame(set, ((SynchronizedNavigableSet<String>) subSet).mutex); }
public void testTailSet_E_B() { NavigableSet<String> set = create(); NavigableSet<String> tailSet = set.tailSet("a", true); assertTrue(tailSet instanceof SynchronizedNavigableSet); assertSame(set, ((SynchronizedNavigableSet<String>) tailSet).mutex); }
public void testDescendingSet() { NavigableSet<String> map = create(); NavigableSet<String> descendingSet = map.descendingSet(); assertTrue(descendingSet instanceof SynchronizedNavigableSet); assertSame(MUTEX, ((SynchronizedNavigableSet<String>) descendingSet).mutex); }
public void testHeadSet_E_B() { NavigableSet<String> map = create(); NavigableSet<String> headSet = map.headSet("a", true); assertTrue(headSet instanceof SynchronizedNavigableSet); assertSame(MUTEX, ((SynchronizedNavigableSet<String>) headSet).mutex); }
public void testSubSet_E_B_E_B() { NavigableSet<String> map = create(); NavigableSet<String> subSet = map.subSet("a", false, "b", true); assertTrue(subSet instanceof SynchronizedNavigableSet); assertSame(MUTEX, ((SynchronizedNavigableSet<String>) subSet).mutex); }
public void testTailSet_E_B() { NavigableSet<String> map = create(); NavigableSet<String> tailSet = map.tailSet("a", true); assertTrue(tailSet instanceof SynchronizedNavigableSet); assertSame(MUTEX, ((SynchronizedNavigableSet<String>) tailSet).mutex); }
public void testDescendingKeySet() { NavigableMap<String, Integer> map = create(); NavigableSet<String> descendingKeySet = map.descendingKeySet(); assertTrue(descendingKeySet instanceof SynchronizedNavigableSet); assertSame(mutex, ((SynchronizedNavigableSet<String>) descendingKeySet).mutex); }
public void testNavigableKeySet() { NavigableMap<String, Integer> map = create(); NavigableSet<String> navigableKeySet = map.navigableKeySet(); assertTrue(navigableKeySet instanceof SynchronizedNavigableSet); assertSame(mutex, ((SynchronizedNavigableSet<String>) navigableKeySet).mutex); }