本文整理汇总了Java中org.apache.commons.collections4.MapIterator.getValue方法的典型用法代码示例。如果您正苦于以下问题:Java MapIterator.getValue方法的具体用法?Java MapIterator.getValue怎么用?Java MapIterator.getValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.collections4.MapIterator
的用法示例。
在下文中一共展示了MapIterator.getValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: doToString
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
/**
* Gets the string form of this map as per AbstractMap.
*
* @param type the KEY or VALUE int
* @return the string form of this map
*/
private String doToString(final DataElement dataElement) {
if (nodeCount == 0) {
return "{}";
}
final StringBuilder buf = new StringBuilder(nodeCount * 32);
buf.append('{');
final MapIterator<?, ?> it = getMapIterator(dataElement);
boolean hasNext = it.hasNext();
while (hasNext) {
final Object key = it.next();
final Object value = it.getValue();
buf.append(key == this ? "(this Map)" : key)
.append('=')
.append(value == this ? "(this Map)" : value);
hasNext = it.hasNext();
if (hasNext) {
buf.append(", ");
}
}
buf.append('}');
return buf.toString();
}
示例2: loadForRequest
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Override
public List<Cookie> loadForRequest(HttpUrl url) {
List<Cookie> cookies = new LinkedList<>();
synchronized (storage) {
MapIterator<MultiKey<? extends String>, Cookie> iter = storage.mapIterator();
while (iter.hasNext()) {
iter.next();
Cookie cookie = iter.getValue();
// remove expired cookies
if (cookie.expiresAt() <= System.currentTimeMillis()) {
iter.remove();
continue;
}
// add applicable cookies
if (cookie.matches(url)) {
cookies.add(cookie);
}
}
}
return cookies;
}
示例3: testMapIteratorRemoveGetValue_add924
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorRemoveGetValue_add924() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorRemoveGetValue_add924");
if (!(supportsRemove())) {
return ;
}
final MapIterator<K, V> it = makeObject();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2656,it,2655,it.hasNext());
final K key = it.next();
it.remove();
confirmed.remove(key);
confirmed.remove(key);
verify();
try {
it.getValue();
} catch (final IllegalStateException ex) {
}
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例4: testMapIteratorRemoveGetValue_add925
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorRemoveGetValue_add925() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorRemoveGetValue_add925");
if (!(supportsRemove())) {
return ;
}
final MapIterator<K, V> it = makeObject();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2656,it,2655,it.hasNext());
final K key = it.next();
it.remove();
confirmed.remove(key);
verify();
verify();
try {
it.getValue();
} catch (final IllegalStateException ex) {
}
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例5: testMapIteratorRemoveGetValue_remove701
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorRemoveGetValue_remove701() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorRemoveGetValue_remove701");
if (!(supportsRemove())) {
return ;
}
final MapIterator<K, V> it = makeObject();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2656,it,2655,it.hasNext());
final K key = it.next();
it.remove();
verify();
try {
it.getValue();
} catch (final IllegalStateException ex) {
}
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例6: testMapIteratorRemoveGetValue_add927
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorRemoveGetValue_add927() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorRemoveGetValue_add927");
if (!(supportsRemove())) {
return ;
}
final MapIterator<K, V> it = makeObject();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2656,it,2655,it.hasNext());
final K key = it.next();
it.remove();
confirmed.remove(key);
verify();
try {
it.getValue();
} catch (final IllegalStateException ex) {
}
verify();
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例7: toString
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
/**
* Gets the map as a String.
*
* @return a string version of the map
*/
@Override
public String toString() {
if (size() == 0) {
return "{}";
}
final StringBuilder buf = new StringBuilder(32 * size());
buf.append('{');
final MapIterator<K, V> it = mapIterator();
boolean hasNext = it.hasNext();
while (hasNext) {
final K key = it.next();
final V value = it.getValue();
buf.append(key == this ? "(this Map)" : key)
.append('=')
.append(value == this ? "(this Map)" : value);
hasNext = it.hasNext();
if (hasNext) {
buf.append(',').append(' ');
}
}
buf.append('}');
return buf.toString();
}
示例8: test9_UsingApacheIterableMap
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Benchmark
public long test9_UsingApacheIterableMap() throws IOException {
long i = 0;
MapIterator<Integer, Integer> it = iterableMap.mapIterator();
while (it.hasNext()) {
i += it.next() + it.getValue();
}
return i;
}
示例9: testFullMapIterator
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
/**
* Test that the full list iterator contract is correct.
*/
@Test(timeout = 1000)
public void testFullMapIterator() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testFullMapIterator");
if (!(supportsFullIterator())) {
return ;
}
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2638,it,2637,it.hasNext());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2640,it,2639,it.hasNext());
final Set<K> set = new HashSet<K>();
while (it.hasNext()) {
final K key = it.next();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2641,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2643,it,2642,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2645,map,2644,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2647,set,2646,set.add(key));
final V value = it.getValue();
if (!(isGetStructuralModify())) {
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2649,map,2648,map.get(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2650,value);
}
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2652,map,2651,map.containsValue(value));
verify();
verify();
}
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例10: testMapIteratorSet_add928
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSet_add928() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet_add928");
if (!(supportsFullIterator())) {
return ;
}
final V newValue = addSetValues()[0];
final V newValue2 = (addSetValues().length) == 1 ? addSetValues()[0] : addSetValues()[1];
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2660,it,2659,it.hasNext());
final K key = it.next();
final V value = it.getValue();
if (!(supportsSetValue())) {
try {
it.setValue(newValue);
it.setValue(newValue);
} catch (final UnsupportedOperationException ex) {
}
return ;
}
final V old = it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2661,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2663,it,2662,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2664,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2666,it,2665,it.getValue());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2667,value);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2668,old);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2670,map,2669,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2672,confirmed,2671,confirmed.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2674,map,2673,map.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2676,map,2675,map.containsValue(newValue));
verify();
it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2677,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2679,it,2678,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2680,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2682,it,2681,it.getValue());
verify();
it.setValue(newValue2);
confirmed.put(key, newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2683,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2685,it,2684,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2686,newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2688,it,2687,it.getValue());
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例11: testMapIteratorSet_remove710
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSet_remove710() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet_remove710");
if (!(supportsFullIterator())) {
return ;
}
final V newValue = addSetValues()[0];
final V newValue2 = (addSetValues().length) == 1 ? addSetValues()[0] : addSetValues()[1];
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2660,it,2659,it.hasNext());
final K key = it.next();
final V value = it.getValue();
if (!(supportsSetValue())) {
try {
it.setValue(newValue);
} catch (final UnsupportedOperationException ex) {
}
return ;
}
final V old = it.setValue(newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2661,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2663,it,2662,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2664,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2666,it,2665,it.getValue());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2667,value);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2668,old);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2670,map,2669,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2672,confirmed,2671,confirmed.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2674,map,2673,map.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2676,map,2675,map.containsValue(newValue));
verify();
it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2677,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2679,it,2678,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2680,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2682,it,2681,it.getValue());
verify();
it.setValue(newValue2);
confirmed.put(key, newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2683,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2685,it,2684,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2686,newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2688,it,2687,it.getValue());
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例12: testMapIteratorSet_add932
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSet_add932() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet_add932");
if (!(supportsFullIterator())) {
return ;
}
final V newValue = addSetValues()[0];
final V newValue2 = (addSetValues().length) == 1 ? addSetValues()[0] : addSetValues()[1];
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2660,it,2659,it.hasNext());
final K key = it.next();
final V value = it.getValue();
if (!(supportsSetValue())) {
try {
it.setValue(newValue);
} catch (final UnsupportedOperationException ex) {
}
return ;
}
final V old = it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2661,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2663,it,2662,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2664,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2666,it,2665,it.getValue());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2667,value);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2668,old);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2670,map,2669,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2672,confirmed,2671,confirmed.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2674,map,2673,map.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2676,map,2675,map.containsValue(newValue));
verify();
it.setValue(newValue);
confirmed.put(key, newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2677,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2679,it,2678,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2680,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2682,it,2681,it.getValue());
verify();
it.setValue(newValue2);
confirmed.put(key, newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2683,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2685,it,2684,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2686,newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2688,it,2687,it.getValue());
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例13: testMapIteratorSet_add933
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSet_add933() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet_add933");
if (!(supportsFullIterator())) {
return ;
}
final V newValue = addSetValues()[0];
final V newValue2 = (addSetValues().length) == 1 ? addSetValues()[0] : addSetValues()[1];
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2660,it,2659,it.hasNext());
final K key = it.next();
final V value = it.getValue();
if (!(supportsSetValue())) {
try {
it.setValue(newValue);
} catch (final UnsupportedOperationException ex) {
}
return ;
}
final V old = it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2661,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2663,it,2662,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2664,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2666,it,2665,it.getValue());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2667,value);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2668,old);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2670,map,2669,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2672,confirmed,2671,confirmed.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2674,map,2673,map.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2676,map,2675,map.containsValue(newValue));
verify();
it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2677,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2679,it,2678,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2680,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2682,it,2681,it.getValue());
verify();
verify();
it.setValue(newValue2);
confirmed.put(key, newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2683,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2685,it,2684,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2686,newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2688,it,2687,it.getValue());
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例14: testMapIteratorSet_add935
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSet_add935() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet_add935");
if (!(supportsFullIterator())) {
return ;
}
final V newValue = addSetValues()[0];
final V newValue2 = (addSetValues().length) == 1 ? addSetValues()[0] : addSetValues()[1];
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2660,it,2659,it.hasNext());
final K key = it.next();
final V value = it.getValue();
if (!(supportsSetValue())) {
try {
it.setValue(newValue);
} catch (final UnsupportedOperationException ex) {
}
return ;
}
final V old = it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2661,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2663,it,2662,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2664,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2666,it,2665,it.getValue());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2667,value);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2668,old);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2670,map,2669,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2672,confirmed,2671,confirmed.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2674,map,2673,map.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2676,map,2675,map.containsValue(newValue));
verify();
it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2677,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2679,it,2678,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2680,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2682,it,2681,it.getValue());
verify();
it.setValue(newValue2);
confirmed.put(key, newValue2);
confirmed.put(key, newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2683,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2685,it,2684,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2686,newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2688,it,2687,it.getValue());
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例15: testMapIteratorSet
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
public void testMapIteratorSet() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet");
if (!(supportsFullIterator())) {
return ;
}
final V newValue = addSetValues()[1];
final V newValue2 = (addSetValues().length) == 1 ? addSetValues()[0] : addSetValues()[1];
final MapIterator<K, V> it = makeObject();
final Map<K, V> map = getMap();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2660,it,2659,it.hasNext());
final K key = it.next();
final V value = it.getValue();
if (!(supportsSetValue())) {
try {
it.setValue(newValue);
} catch (final UnsupportedOperationException ex) {
}
return ;
}
final V old = it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2661,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2663,it,2662,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2664,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2666,it,2665,it.getValue());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2667,value);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2668,old);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2670,map,2669,map.containsKey(key));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2672,confirmed,2671,confirmed.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2674,map,2673,map.containsValue(old));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2676,map,2675,map.containsValue(newValue));
verify();
it.setValue(newValue);
confirmed.put(key, newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2677,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2679,it,2678,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2680,newValue);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2682,it,2681,it.getValue());
verify();
it.setValue(newValue2);
confirmed.put(key, newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2683,key);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2685,it,2684,it.getKey());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2686,newValue2);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2688,it,2687,it.getValue());
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}