本文整理汇总了Java中org.apache.commons.collections4.MapIterator.next方法的典型用法代码示例。如果您正苦于以下问题:Java MapIterator.next方法的具体用法?Java MapIterator.next怎么用?Java MapIterator.next使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.collections4.MapIterator
的用法示例。
在下文中一共展示了MapIterator.next方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: removeAll
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
/**
* Removes all mappings where the first three keys are those specified.
* <p>
* This method removes all the mappings where the <code>MultiKey</code>
* has three or more keys, and the first three match those specified.
*
* @param key1 the first key
* @param key2 the second key
* @param key3 the third key
* @return true if any elements were removed
*/
public boolean removeAll(final Object key1, final Object key2, final Object key3) {
boolean modified = false;
final MapIterator<MultiKey<? extends K>, V> it = mapIterator();
while (it.hasNext()) {
final MultiKey<? extends K> multi = it.next();
if (multi.size() >= 3 &&
(key1 == null ? multi.getKey(0) == null : key1.equals(multi.getKey(0))) &&
(key2 == null ? multi.getKey(1) == null : key2.equals(multi.getKey(1))) &&
(key3 == null ? multi.getKey(2) == null : key3.equals(multi.getKey(2)))) {
it.remove();
modified = true;
}
}
return modified;
}
示例2: 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();
}
示例3: 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;
}
示例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: testMapIteratorSetValue1_add271
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add271() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add271");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(ONE)), ((V)(TEN)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例6: testMapIteratorSetValue1_add272
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add272() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add272");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(ONE)), ((V)(TEN)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例7: testMapIteratorSetValue1_add273
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add273() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add273");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(ONE)), ((V)(TEN)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例8: 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());
}
示例9: testMapIteratorSetValue3_remove235
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue3_remove235() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue3_remove235");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.next();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),721,map,720,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),723,map,722,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),725,map,724,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),727,map,726,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),728,org.apache.commons.collections4.map.Flat3MapTest.TEN);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),730,map,729,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),731,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),733,map,732,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),735,map,734,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例10: testMapIteratorSetValue1_remove226
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_remove226() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_remove226");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例11: testMapIteratorSetValue3_add282
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue3_add282() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue3_add282");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(ONE)), ((V)(TEN)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.next();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),721,map,720,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),723,map,722,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),725,map,724,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),727,map,726,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),728,org.apache.commons.collections4.map.Flat3MapTest.TEN);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),730,map,729,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),731,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),733,map,732,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),735,map,734,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例12: testMapIteratorSetValue1_remove228
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_remove228() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_remove228");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),689,map,688,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),691,map,690,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),693,map,692,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),695,map,694,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),697,map,696,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),698,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),700,map,699,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),701,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),703,map,702,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例13: testMapIteratorSetValue3_add284
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue3_add284() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue3_add284");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(ONE)), ((V)(TEN)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.next();
it.next();
it.next();
it.setValue(((V)("NewValue")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),721,map,720,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),723,map,722,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),725,map,724,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),727,map,726,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),728,org.apache.commons.collections4.map.Flat3MapTest.TEN);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),730,map,729,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),731,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),733,map,732,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),735,map,734,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例14: testMapIteratorSetValue3_literalMutation199
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
public void testMapIteratorSetValue3_literalMutation199() throws Exception {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue3_literalMutation199");
final Flat3Map<K, V> map = makeObject();
map.put(((K)(ONE)), ((V)(TEN)));
map.put(((K)(TWO)), ((V)(TWENTY)));
map.put(((K)(THREE)), ((V)(THIRTY)));
final MapIterator<K, V> it = map.mapIterator();
it.next();
it.next();
it.next();
it.setValue(((V)("foo")));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),721,map,720,map.size());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),723,map,722,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),725,map,724,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),727,map,726,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),728,org.apache.commons.collections4.map.Flat3MapTest.TEN);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),730,map,729,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),731,org.apache.commons.collections4.map.Flat3MapTest.TWENTY);
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),733,map,732,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),735,map,734,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例15: testMapIteratorSetRemoveSet_remove713
import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSetRemoveSet_remove713() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetRemoveSet_remove713");
if ((!(supportsSetValue())) || (!(supportsRemove()))) {
return ;
}
final V newValue = addSetValues()[0];
final MapIterator<K, V> it = makeObject();
final Map<K, V> confirmed = getConfirmedMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),2658,it,2657,it.hasNext());
final K key = it.next();
it.setValue(newValue);
confirmed.remove(key);
verify();
try {
it.setValue(newValue);
} catch (final IllegalStateException ex) {
}
verify();
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}