Home
last modified time | relevance | path

Searched refs:unmod (Results 1 – 10 of 10) sorted by relevance

/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DMultimapsTest.java80 ListMultimap<String, Integer> unmod = Multimaps.unmodifiableListMultimap(mod); in testUnmodifiableListMultimapShortCircuit() local
81 assertNotSame(mod, unmod); in testUnmodifiableListMultimapShortCircuit()
82 assertSame(unmod, Multimaps.unmodifiableListMultimap(unmod)); in testUnmodifiableListMultimapShortCircuit()
93 SetMultimap<String, Integer> unmod = Multimaps.unmodifiableSetMultimap(mod); in testUnmodifiableSetMultimapShortCircuit() local
94 assertNotSame(mod, unmod); in testUnmodifiableSetMultimapShortCircuit()
95 assertSame(unmod, Multimaps.unmodifiableSetMultimap(unmod)); in testUnmodifiableSetMultimapShortCircuit()
106 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapShortCircuit() local
107 assertNotSame(mod, unmod); in testUnmodifiableMultimapShortCircuit()
108 assertSame(unmod, Multimaps.unmodifiableMultimap(unmod)); in testUnmodifiableMultimapShortCircuit()
136 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapIsView() local
[all …]
DMultisetsTest.java253 Multiset<String> unmod = Multisets.unmodifiableMultiset(mod); in testUnmodifiableMultisetShortCircuit() local
254 assertNotSame(mod, unmod); in testUnmodifiableMultisetShortCircuit()
255 assertSame(unmod, Multisets.unmodifiableMultiset(unmod)); in testUnmodifiableMultisetShortCircuit()
DMapsTest.java909 BiMap<Number, String> unmod = Maps.<Number, String>unmodifiableBiMap(mod); in testUnmodifiableBiMap() local
912 assertSame(unmod.inverse(), unmod.inverse()); in testUnmodifiableBiMap()
913 assertSame(unmod, unmod.inverse().inverse()); in testUnmodifiableBiMap()
917 assertEquals(true, unmod.get(4).equals("four")); in testUnmodifiableBiMap()
918 assertEquals(true, unmod.inverse().get("four").equals(4)); in testUnmodifiableBiMap()
922 unmod.put(4, "four"); in testUnmodifiableBiMap()
926 unmod.forcePut(4, "four"); in testUnmodifiableBiMap()
930 unmod.putAll(Collections.singletonMap(4, "four")); in testUnmodifiableBiMap()
935 BiMap<String, Number> inverse = unmod.inverse(); in testUnmodifiableBiMap()
948 Set<String> values = unmod.values(); in testUnmodifiableBiMap()
[all …]
DSetsTest.java767 void ensureNotDirectlyModifiable(SortedSet<Integer> unmod) {
769 unmod.add(4);
774 unmod.remove(4);
779 unmod.addAll(Collections.singleton(4));
784 Iterator<Integer> iterator = unmod.iterator();
DIteratorsTest.java1273 UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod); in testUnmodifiableIteratorShortCircuit() local
1274 assertNotSame(mod, unmod); in testUnmodifiableIteratorShortCircuit()
1275 assertSame(unmod, Iterators.unmodifiableIterator(unmod)); in testUnmodifiableIteratorShortCircuit()
1276 assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod)); in testUnmodifiableIteratorShortCircuit()
/external/guava/guava-tests/test/com/google/common/collect/
DSetsTest.java1079 NavigableSet<Integer> unmod = unmodifiableNavigableSet(mod);
1083 assertTrue(unmod.contains(4));
1084 assertTrue(unmod.descendingSet().contains(4));
1086 ensureNotDirectlyModifiable(unmod);
1087 ensureNotDirectlyModifiable(unmod.descendingSet());
1088 ensureNotDirectlyModifiable(unmod.headSet(2));
1089 ensureNotDirectlyModifiable(unmod.headSet(2, true));
1090 ensureNotDirectlyModifiable(unmod.tailSet(2));
1091 ensureNotDirectlyModifiable(unmod.tailSet(2, true));
1092 ensureNotDirectlyModifiable(unmod.subSet(1, 3));
[all …]
DMultimapsTest.java84 ListMultimap<String, Integer> unmod = Multimaps.unmodifiableListMultimap(mod); in testUnmodifiableListMultimapShortCircuit() local
85 assertNotSame(mod, unmod); in testUnmodifiableListMultimapShortCircuit()
86 assertSame(unmod, Multimaps.unmodifiableListMultimap(unmod)); in testUnmodifiableListMultimapShortCircuit()
97 SetMultimap<String, Integer> unmod = Multimaps.unmodifiableSetMultimap(mod); in testUnmodifiableSetMultimapShortCircuit() local
98 assertNotSame(mod, unmod); in testUnmodifiableSetMultimapShortCircuit()
99 assertSame(unmod, Multimaps.unmodifiableSetMultimap(unmod)); in testUnmodifiableSetMultimapShortCircuit()
110 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapShortCircuit() local
111 assertNotSame(mod, unmod); in testUnmodifiableMultimapShortCircuit()
112 assertSame(unmod, Multimaps.unmodifiableMultimap(unmod)); in testUnmodifiableMultimapShortCircuit()
228 Multimap<String, Integer> unmod = Multimaps.unmodifiableMultimap(mod); in testUnmodifiableMultimapIsView() local
[all …]
DMapsTest.java1217 BiMap<Number, String> unmod = Maps.<Number, String>unmodifiableBiMap(mod); in testUnmodifiableBiMap() local
1220 assertSame(unmod.inverse(), unmod.inverse()); in testUnmodifiableBiMap()
1221 assertSame(unmod, unmod.inverse().inverse()); in testUnmodifiableBiMap()
1225 assertEquals(true, unmod.get(4).equals("four")); in testUnmodifiableBiMap()
1226 assertEquals(true, unmod.inverse().get("four").equals(4)); in testUnmodifiableBiMap()
1230 unmod.put(4, "four"); in testUnmodifiableBiMap()
1234 unmod.forcePut(4, "four"); in testUnmodifiableBiMap()
1238 unmod.putAll(Collections.singletonMap(4, "four")); in testUnmodifiableBiMap()
1243 BiMap<String, Number> inverse = unmod.inverse(); in testUnmodifiableBiMap()
1256 Set<String> values = unmod.values(); in testUnmodifiableBiMap()
[all …]
DMultisetsTest.java255 Multiset<String> unmod = Multisets.unmodifiableMultiset(mod); in testUnmodifiableMultisetShortCircuit() local
256 assertNotSame(mod, unmod); in testUnmodifiableMultisetShortCircuit()
257 assertSame(unmod, Multisets.unmodifiableMultiset(unmod)); in testUnmodifiableMultisetShortCircuit()
DIteratorsTest.java1586 UnmodifiableIterator<String> unmod = Iterators.unmodifiableIterator(mod);
1587 assertNotSame(mod, unmod);
1588 assertSame(unmod, Iterators.unmodifiableIterator(unmod));
1589 assertSame(unmod, Iterators.unmodifiableIterator((Iterator<String>) unmod));