本文整理汇总了Java中org.apache.commons.collections4.map.MultiValueMap.multiValueMap方法的典型用法代码示例。如果您正苦于以下问题:Java MultiValueMap.multiValueMap方法的具体用法?Java MultiValueMap.multiValueMap怎么用?Java MultiValueMap.multiValueMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.collections4.map.MultiValueMap
的用法示例。
在下文中一共展示了MultiValueMap.multiValueMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testPopulateMultiMap_add2677
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2677() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2677");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例2: testPopulateMultiMap_add2678
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2678() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2678");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例3: testPopulateMultiMap_add2679
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2679() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2679");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例4: testPopulateMultiMap_remove2125
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2125() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2125");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例5: testPopulateMultiMap_add2681
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_add2681() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_add2681");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例6: testPopulateMultiMap_remove2124
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2124() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2124");
final List<X> list = new ArrayList<X>();
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例7: testPopulateMultiMap_remove2126
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2126() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2126");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例8: testPopulateMultiMap_literalMutation2796
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2796() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2796");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "foo"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例9: testPopulateMultiMap_remove2123
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
@org.junit.Test(timeout = 1000)
public void testPopulateMultiMap_remove2123() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_remove2123");
final List<X> list = new ArrayList<X>();
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例10: testPopulateMultiMap_literalMutation2798
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2798() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2798");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "foo"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例11: testPopulateMultiMap_literalMutation2799
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2799() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2799");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(3 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例12: testPopulateMultiMap_literalMutation2800
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2800() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2800");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "foo"));
list.add(new X(5 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例13: testPopulateMultiMap_literalMutation2801
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2801() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2801");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(4 , "x4"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例14: testPopulateMultiMap_literalMutation2802
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2802() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2802");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "foo"));
list.add(new X(5 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例15: testPopulateMultiMap_literalMutation2803
import org.apache.commons.collections4.map.MultiValueMap; //导入方法依赖的package包/类
public void testPopulateMultiMap_literalMutation2803() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPopulateMultiMap_literalMutation2803");
final List<X> list = new ArrayList<X>();
list.add(new X(1 , "x1"));
list.add(new X(2 , "x2"));
list.add(new X(2 , "x3"));
list.add(new X(5 , "x4"));
list.add(new X(4 , "x5"));
final MultiValueMap<java.lang.Integer, X> map = MultiValueMap.multiValueMap(new TreeMap<java.lang.Integer, java.util.Collection<X>>());
org.apache.commons.collections4.MapUtils.populateMap(map, list, new Transformer<X, java.lang.Integer>() {
public Integer transform(X input) {
return input.key;
}
}, org.apache.commons.collections4.TransformerUtils.<X>nopTransformer());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7893,list,7892,list.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7895,map,7894,map.totalSize());
for (int i = 0 ; i < (list.size()) ; i++) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7897,map,7896,map.containsKey(list.get(i).key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),7899,map,7898,map.containsValue(list.get(i)));
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}