diff options
Diffstat (limited to 'guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java')
-rw-r--r-- | guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java b/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java index 842ba9286..b5eeb58bc 100644 --- a/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java +++ b/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java @@ -30,6 +30,7 @@ import com.google.common.collect.testing.features.CollectionSize; import com.google.common.collect.testing.google.SetMultimapTestSuiteBuilder; import com.google.common.collect.testing.google.TestStringSetMultimapGenerator; import com.google.common.collect.testing.google.UnmodifiableCollectionTests; +import com.google.common.primitives.Chars; import com.google.common.testing.CollectorTester; import com.google.common.testing.EqualsTester; import com.google.common.testing.NullPointerTester; @@ -428,7 +429,7 @@ public class ImmutableSetMultimapTest extends TestCase { public void testFlatteningToImmutableSetMultimap() { Collector<String, ?, ImmutableSetMultimap<Character, Character>> collector = ImmutableSetMultimap.flatteningToImmutableSetMultimap( - str -> str.charAt(0), str -> str.substring(1).chars().mapToObj(c -> (char) c)); + str -> str.charAt(0), str -> Chars.asList(str.substring(1).toCharArray()).stream()); BiPredicate<Multimap<?, ?>, Multimap<?, ?>> equivalence = Equivalence.equals() .onResultOf((Multimap<?, ?> mm) -> ImmutableList.copyOf(mm.asMap().entrySet())) @@ -627,6 +628,7 @@ public class ImmutableSetMultimapTest extends TestCase { } @GwtIncompatible // reflection + @AndroidIncompatible // see ImmutableTableTest.testNullPointerInstance public void testNulls() throws Exception { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicStaticMethods(ImmutableSetMultimap.class); |