Coverage Summary for Class: ListMultimapPutAllTester (com.google.common.collect.testing.google)

Class Class, % Method, % Line, %
ListMultimapPutAllTester 0% (0/1) 0% (0/2) 0% (0/10)


1 /* 2  * Copyright (C) 2012 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.Helpers.copyToList; 18 import static com.google.common.collect.testing.features.MapFeature.SUPPORTS_PUT; 19  20 import com.google.common.annotations.GwtCompatible; 21 import com.google.common.collect.ListMultimap; 22 import com.google.common.collect.testing.features.MapFeature; 23 import java.util.Arrays; 24 import java.util.List; 25 import org.junit.Ignore; 26  27 /** 28  * Testers for {@link ListMultimap#putAll(Object, Iterable)}. 29  * 30  * @author Louis Wasserman 31  */ 32 @GwtCompatible 33 @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests. 34 public class ListMultimapPutAllTester<K, V> extends AbstractListMultimapTester<K, V> { 35  @MapFeature.Require(SUPPORTS_PUT) 36  public void testPutAllAddsAtEndInOrder() { 37  @SuppressWarnings("unchecked") 38  List<V> values = Arrays.asList(v3(), v1(), v4()); 39  40  for (K k : sampleKeys()) { 41  resetContainer(); 42  43  List<V> expectedValues = copyToList(multimap().get(k)); 44  45  assertTrue(multimap().putAll(k, values)); 46  expectedValues.addAll(values); 47  48  assertGet(k, expectedValues); 49  } 50  } 51 }