Coverage Summary for Class: ListMultimapEqualsTester (com.google.common.collect.testing.google)
| Class | Class, % | Method, % | Line, % |
|---|---|---|---|
| ListMultimapEqualsTester | 0% (0/1) | 0% (0/2) | 0% (0/15) |
1 /* 2 * Copyright (C) 2013 The Guava Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5 * in compliance with the License. You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software distributed under the License 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11 * or implied. See the License for the specific language governing permissions and limitations under 12 * the License. 13 */ 14 15 package com.google.common.collect.testing.google; 16 17 import static com.google.common.collect.testing.features.CollectionSize.SEVERAL; 18 19 import com.google.common.annotations.GwtCompatible; 20 import com.google.common.collect.ListMultimap; 21 import com.google.common.collect.testing.Helpers; 22 import com.google.common.collect.testing.features.CollectionSize; 23 import com.google.common.testing.EqualsTester; 24 import org.junit.Ignore; 25 26 /** 27 * Testers for {@link ListMultimap#equals(Object)}. 28 * 29 * @author Louis Wasserman 30 */ 31 @GwtCompatible 32 @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. 33 public class ListMultimapEqualsTester<K, V> extends AbstractListMultimapTester<K, V> { 34 @CollectionSize.Require(SEVERAL) 35 public void testOrderingAffectsEqualsComparisons() { 36 ListMultimap<K, V> multimap1 = 37 getSubjectGenerator() 38 .create( 39 Helpers.mapEntry(k0(), v0()), 40 Helpers.mapEntry(k0(), v1()), 41 Helpers.mapEntry(k0(), v0())); 42 ListMultimap<K, V> multimap2 = 43 getSubjectGenerator() 44 .create( 45 Helpers.mapEntry(k0(), v1()), 46 Helpers.mapEntry(k0(), v0()), 47 Helpers.mapEntry(k0(), v0())); 48 new EqualsTester().addEqualityGroup(multimap1).addEqualityGroup(multimap2).testEquals(); 49 } 50 }