本文整理汇总了Java中org.apache.commons.collections4.BidiMap.clear方法的典型用法代码示例。如果您正苦于以下问题:Java BidiMap.clear方法的具体用法?Java BidiMap.clear怎么用?Java BidiMap.clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.commons.collections4.BidiMap
的用法示例。
在下文中一共展示了BidiMap.clear方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testBidiClear
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testBidiClear() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiClear");
if (!(isRemoveSupported())) {
try {
makeFullMap().clear();
makeFullMap().clear();
} catch (final UnsupportedOperationException ex) {
}
return ;
}
BidiMap<?, ?> map = makeFullMap();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4857,map,4856,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4859,map.inverseBidiMap(),4858,map.inverseBidiMap().isEmpty());
map = makeFullMap().inverseBidiMap();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4861,map,4860,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4863,map.inverseBidiMap(),4862,map.inverseBidiMap().isEmpty());
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例2: testBidiClear_add1568
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testBidiClear_add1568() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiClear_add1568");
if (!(isRemoveSupported())) {
try {
makeFullMap().clear();
} catch (final UnsupportedOperationException ex) {
}
return ;
}
BidiMap<?, ?> map = makeFullMap();
map.clear();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4857,map,4856,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4859,map.inverseBidiMap(),4858,map.inverseBidiMap().isEmpty());
map = makeFullMap().inverseBidiMap();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4861,map,4860,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4863,map.inverseBidiMap(),4862,map.inverseBidiMap().isEmpty());
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例3: testBidiClear_add1569
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testBidiClear_add1569() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiClear_add1569");
if (!(isRemoveSupported())) {
try {
makeFullMap().clear();
} catch (final UnsupportedOperationException ex) {
}
return ;
}
BidiMap<?, ?> map = makeFullMap();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4857,map,4856,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4859,map.inverseBidiMap(),4858,map.inverseBidiMap().isEmpty());
map = makeFullMap().inverseBidiMap();
map.clear();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4861,map,4860,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4863,map.inverseBidiMap(),4862,map.inverseBidiMap().isEmpty());
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例4: testBidiClear_remove1189
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testBidiClear_remove1189() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiClear_remove1189");
if (!(isRemoveSupported())) {
try {
makeFullMap().clear();
} catch (final UnsupportedOperationException ex) {
}
return ;
}
BidiMap<?, ?> map = makeFullMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4857,map,4856,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4859,map.inverseBidiMap(),4858,map.inverseBidiMap().isEmpty());
map = makeFullMap().inverseBidiMap();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4861,map,4860,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4863,map.inverseBidiMap(),4862,map.inverseBidiMap().isEmpty());
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}
示例5: testBidiClear_remove1190
import org.apache.commons.collections4.BidiMap; //导入方法依赖的package包/类
@Test(timeout = 1000)
public void testBidiClear_remove1190() {
fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testBidiClear_remove1190");
if (!(isRemoveSupported())) {
try {
makeFullMap().clear();
} catch (final UnsupportedOperationException ex) {
}
return ;
}
BidiMap<?, ?> map = makeFullMap();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4857,map,4856,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4859,map.inverseBidiMap(),4858,map.inverseBidiMap().isEmpty());
map = makeFullMap().inverseBidiMap();
map.clear();
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4861,map,4860,map.isEmpty());
fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),4863,map.inverseBidiMap(),4862,map.inverseBidiMap().isEmpty());
fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread());
}