public void testHeadSet_E() { NavigableSet<String> set = create(); SortedSet<String> headSet = set.headSet("a"); assertTrue(headSet instanceof SynchronizedSortedSet); assertSame(set, ((SynchronizedSortedSet<String>) headSet).mutex); }
public void testSubSet_E_E() { NavigableSet<String> set = create(); SortedSet<String> subSet = set.subSet("a", "b"); assertTrue(subSet instanceof SynchronizedSortedSet); assertSame(set, ((SynchronizedSortedSet<String>) subSet).mutex); }
public void testTailSet_E() { NavigableSet<String> set = create(); SortedSet<String> tailSet = set.tailSet("a"); assertTrue(tailSet instanceof SynchronizedSortedSet); assertSame(set, ((SynchronizedSortedSet<String>) tailSet).mutex); }
public void testHeadSet_E() { NavigableSet<String> map = create(); SortedSet<String> headSet = map.headSet("a"); assertTrue(headSet instanceof SynchronizedSortedSet); assertSame(MUTEX, ((SynchronizedSortedSet<String>) headSet).mutex); }
public void testSubSet_E_E() { NavigableSet<String> map = create(); SortedSet<String> subSet = map.subSet("a", "b"); assertTrue(subSet instanceof SynchronizedSortedSet); assertSame(MUTEX, ((SynchronizedSortedSet<String>) subSet).mutex); }
public void testTailSet_E() { NavigableSet<String> map = create(); SortedSet<String> tailSet = map.tailSet("a"); assertTrue(tailSet instanceof SynchronizedSortedSet); assertSame(MUTEX, ((SynchronizedSortedSet<String>) tailSet).mutex); }