当前位置: 首页>>代码示例>>Java>>正文


Java MapIterator.setValue方法代码示例

本文整理汇总了Java中org.apache.commons.collections4.MapIterator.setValue方法的典型用法代码示例。如果您正苦于以下问题:Java MapIterator.setValue方法的具体用法?Java MapIterator.setValue怎么用?Java MapIterator.setValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.commons.collections4.MapIterator的用法示例。


在下文中一共展示了MapIterator.setValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: testMapIteratorSetValue3_remove236

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue3_remove236() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue3_remove236");
    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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例2: testMapIteratorSetRemoveSet_add938

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSetRemoveSet_add938() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetRemoveSet_add938");
    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);
    it.remove();
    it.remove();
    confirmed.remove(key);
    verify();
    try {
        it.setValue(newValue);
    } catch (final IllegalStateException ex) {
    }
    verify();
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:AbstractMapIteratorTest.java

示例3: 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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例4: testMapIteratorSetValue1_add274

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue1_add274() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue1_add274");
    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.setValue(((V)("NewValue")));
    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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例5: testMapIteratorSetRemoveSet_remove714

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSetRemoveSet_remove714() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetRemoveSet_remove714");
    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);
    it.remove();
    verify();
    try {
        it.setValue(newValue);
    } catch (final IllegalStateException ex) {
    }
    verify();
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:AbstractMapIteratorTest.java

示例6: 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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:22,代码来源:Flat3MapTest.java

示例7: 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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:Flat3MapTest.java

示例8: testMapIteratorSetValue2_remove232

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue2_remove232() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue2_remove232");
    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.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),705,map,704,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),707,map,706,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),709,map,708,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),711,map,710,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),712,org.apache.commons.collections4.map.Flat3MapTest.TEN);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),714,map,713,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),716,map,715,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),717,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),719,map,718,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:Flat3MapTest.java

示例9: testMapIteratorSetRemoveSet_add937

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSetRemoveSet_add937() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetRemoveSet_add937");
    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);
    it.setValue(newValue);
    it.remove();
    confirmed.remove(key);
    verify();
    try {
        it.setValue(newValue);
    } catch (final IllegalStateException ex) {
    }
    verify();
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:24,代码来源:AbstractMapIteratorTest.java

示例10: testMapIteratorSetValue2_add279

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue2_add279() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue2_add279");
    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)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),705,map,704,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),707,map,706,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),709,map,708,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),711,map,710,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),712,org.apache.commons.collections4.map.Flat3MapTest.TEN);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),714,map,713,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),716,map,715,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),717,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),719,map,718,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:Flat3MapTest.java

示例11: testMapIteratorSetValue2_add280

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue2_add280() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue2_add280");
    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")));
    it.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),705,map,704,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),707,map,706,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),709,map,708,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),711,map,710,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),712,org.apache.commons.collections4.map.Flat3MapTest.TEN);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),714,map,713,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),716,map,715,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),717,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),719,map,718,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:25,代码来源:Flat3MapTest.java

示例12: testMapIteratorSetValue2_remove231

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@SuppressWarnings(value = "unchecked")
@org.junit.Test(timeout = 1000)
public void testMapIteratorSetValue2_remove231() throws Exception {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSetValue2_remove231");
    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.setValue(((V)("NewValue")));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),705,map,704,map.size());
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),707,map,706,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),709,map,708,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),711,map,710,map.containsKey(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),712,org.apache.commons.collections4.map.Flat3MapTest.TEN);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),714,map,713,map.get(org.apache.commons.collections4.map.Flat3MapTest.ONE));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),716,map,715,map.get(org.apache.commons.collections4.map.Flat3MapTest.TWO));
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),717,org.apache.commons.collections4.map.Flat3MapTest.THIRTY);
    fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),719,map,718,map.get(org.apache.commons.collections4.map.Flat3MapTest.THREE));
    fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:23,代码来源:Flat3MapTest.java

示例13: 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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:50,代码来源:AbstractMapIteratorTest.java

示例14: testMapIteratorSet_remove708

import org.apache.commons.collections4.MapIterator; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testMapIteratorSet_remove708() {
    fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testMapIteratorSet_remove708");
    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));
    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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:50,代码来源:AbstractMapIteratorTest.java

示例15: 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());
}
 
开发者ID:DIVERSIFY-project,项目名称:sosiefier,代码行数:52,代码来源:AbstractMapIteratorTest.java


注:本文中的org.apache.commons.collections4.MapIterator.setValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。