@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_add487() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_add487"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_add488() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_add488"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_add489() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_add489"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_add490() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_add490"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_add491() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_add491"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation423() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation423"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("foo")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation424() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation424"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "foo"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation425() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation425"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("foo")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation426() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation426"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "foo"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation427() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation427"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("foo")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation428() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation428"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "foo"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation429() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation429"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("foo")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") public void testPutAll_Map1_literalMutation430() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_literalMutation430"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "foo"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_remove383() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_remove383"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_remove384() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_remove384"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_remove385() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_remove385"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_remove386() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_remove386"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("key")), "object0"); test.putAll(original); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
@SuppressWarnings(value = "unchecked") @Test(timeout = 1000) public void testPutAll_Map1_remove387() { fr.inria.diversify.testamplification.logger.Logger.writeTestStart(Thread.currentThread(),this, "testPutAll_Map1_remove387"); final MultiMap<K, V> original = new MultiValueMap<K, V>(); original.put(((K)("key")), "object1"); original.put(((K)("key")), "object2"); final MultiValueMap<K, V> test = new MultiValueMap<K, V>(); test.put(((K)("keyA")), "objectA"); test.put(((K)("key")), "object0"); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1545,test,1544,test.size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1547,test,1546,test.totalSize()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1549,test.getCollection("keyA"),1548,test.getCollection("keyA").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1551,test.getCollection("key"),1550,test.getCollection("key").size()); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1553,test,1552,test.containsValue("objectA")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1555,test,1554,test.containsValue("object0")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1557,test,1556,test.containsValue("object1")); fr.inria.diversify.testamplification.logger.Logger.logAssertArgument(Thread.currentThread(),1559,test,1558,test.containsValue("object2")); fr.inria.diversify.testamplification.logger.Logger.writeTestFinish(Thread.currentThread()); }
/** * Create a {@link IndexedCollection}. * * @param coll decorated {@link Collection} * @param keyTransformer {@link Transformer} for generating index keys * @param map map to use as index * @param uniqueIndex if the index shall enforce uniqueness of index keys */ public IndexedCollection(final Collection<C> coll, final Transformer<C, K> keyTransformer, final MultiMap<K, C> map, final boolean uniqueIndex) { super(coll); this.keyTransformer = keyTransformer; this.index = map; this.uniqueIndex = uniqueIndex; reindex(); }
public static void main(String[] args) { String INPUT_TEXT = "Hello World! Hello All! Hi World!"; // Parse text to words and index List<String> words = Arrays.asList(INPUT_TEXT.split(" ")); // Create Multimap MultiMap<String, Integer> multiMap = new MultiValueMap<String, Integer>(); // Fill Multimap int i = 0; for(String word: words) { multiMap.put(word, i); i++; } // Print all words System.out.println(multiMap); // print {Hi=[4], Hello=[0, 2], World!=[1, 5], All!=[3]} - in random orders // Print all unique words System.out.println(multiMap.keySet()); // print [Hi, Hello, World!, All!] - in random orders // Print all indexes System.out.println("Hello = " + multiMap.get("Hello")); // print [0, 2] System.out.println("World = " + multiMap.get("World!")); // print [1, 5] System.out.println("All = " + multiMap.get("All!")); // print [3] System.out.println("Hi = " + multiMap.get("Hi")); // print [4] System.out.println("Empty = " + multiMap.get("Empty")); // print null // Print count unique words System.out.println(multiMap.keySet().size()); //print 4 }
public static void main(String[] args) { String INPUT_TEXT = "Hello World! Hello All! Hi World!"; // Parse text to words and index List<String> words = Arrays.asList(INPUT_TEXT.split(" ")); // Create Multimap MultiMap<String, Integer> multiMap = MultiValueMap.multiValueMap(new LinkedHashMap<String, Set>(), LinkedHashSet.class); // Fill Multimap int i = 0; for(String word: words) { multiMap.put(word, i); i++; } // Print all words System.out.println(multiMap); // print {Hello=[0, 2], World!=[1, 5], All!=[3], Hi=[4]} - in predictable iteration order // Print all unique words System.out.println(multiMap.keySet()); // print [Hello, World!, All!, Hi] - in predictable iteration order // Print all indexes System.out.println("Hello = " + multiMap.get("Hello")); // print [0, 2] System.out.println("World = " + multiMap.get("World!")); // print [1, 5] System.out.println("All = " + multiMap.get("All!")); // print [3] System.out.println("Hi = " + multiMap.get("Hi")); // print [4] System.out.println("Empty = " + multiMap.get("Empty")); // print null // Print count unique words System.out.println(multiMap.keySet().size()); //print 4 }
public static void main(String[] args) { String INPUT_TEXT = "Hello World! Hello All! Hi World!"; // Parse text to words and index List<String> words = Arrays.asList(INPUT_TEXT.split(" ")); // Create Multimap MultiMap<String, Integer> multiMap = MultiValueMap.multiValueMap(new TreeMap<String, Set>(), TreeSet.class); // Fill Multimap int i = 0; for(String word: words) { multiMap.put(word, i); i++; } // Print all words System.out.println(multiMap); // print {All!=[3], Hello=[0, 2], Hi=[4], World!=[1, 5]} -in natural order // Print all unique words System.out.println(multiMap.keySet()); // print [All!, Hello, Hi, World!] in natural order // Print all indexes System.out.println("Hello = " + multiMap.get("Hello")); // print [0, 2] System.out.println("World = " + multiMap.get("World!")); // print [1, 5] System.out.println("All = " + multiMap.get("All!")); // print [3] System.out.println("Hi = " + multiMap.get("Hi")); // print [4] System.out.println("Empty = " + multiMap.get("Empty")); // print null // Print count unique words System.out.println(multiMap.keySet().size()); //print 4 }
public static void main(String[] args) { String INPUT_TEXT = "Hello World! Hello All! Hi World!"; // Разберем текст на слова и индексы List<String> words = Arrays.asList(INPUT_TEXT.split(" ")); // Создаем Multimap MultiMap<String, Integer> multiMap = new MultiValueMap<String, Integer>(); // Заполним Multimap int i = 0; for(String word: words) { multiMap.put(word, i); i++; } // Выводим все вхождения слов в текст System.out.println(multiMap); // напечатает {Hi=[4], Hello=[0, 2], World!=[1, 5], All!=[3]} - в произвольном порядке // Выводим все уникальные слова System.out.println(multiMap.keySet()); // напечатает [Hi, Hello, World!, All!] - в произвольном порядке // Выводим все индексы вхождения слова в текст System.out.println("Hello = " + multiMap.get("Hello")); // напечатает [0, 2] System.out.println("World = " + multiMap.get("World!")); // напечатает [1, 5] System.out.println("All = " + multiMap.get("All!")); // напечатает [3] System.out.println("Hi = " + multiMap.get("Hi")); // напечатает [4] System.out.println("Empty = " + multiMap.get("Empty")); // напечатает null // Выводим общее количество всех уникальных слов System.out.println(multiMap.keySet().size()); //напечатает 4 }
public static void main(String[] args) { String INPUT_TEXT = "Hello World! Hello All! Hi World!"; // Разберем текст на слова и индексы List<String> words = Arrays.asList(INPUT_TEXT.split(" ")); // Создаем Multimap MultiMap<String, Integer> multiMap = MultiValueMap.multiValueMap(new LinkedHashMap<String, Set>(), LinkedHashSet.class); // Заполним Multimap int i = 0; for(String word: words) { multiMap.put(word, i); i++; } // Выводим все вхождения слов в текст System.out.println(multiMap); // напечатает {Hello=[0, 2], World!=[1, 5], All!=[3], Hi=[4]} - в порядке добавления // Выводим все уникальные слова System.out.println(multiMap.keySet()); // напечатает [Hello, World!, All!, Hi] - в порядке добавления // Выводим все индексы вхождения слова в текст System.out.println("Hello = " + multiMap.get("Hello")); // напечатает [0, 2] System.out.println("World = " + multiMap.get("World!")); // напечатает [1, 5] System.out.println("All = " + multiMap.get("All!")); // напечатает [3] System.out.println("Hi = " + multiMap.get("Hi")); // напечатает [4] System.out.println("Empty = " + multiMap.get("Empty")); // напечатает null // Выводим общее количество всех уникальных слов System.out.println(multiMap.keySet().size()); //напечатает 4 }
public static void main(String[] args) { String INPUT_TEXT = "Hello World! Hello All! Hi World!"; // Разберем текст на слова и индексы List<String> words = Arrays.asList(INPUT_TEXT.split(" ")); // Создаем Multimap MultiMap<String, Integer> multiMap = MultiValueMap.multiValueMap(new TreeMap<String, Set>(), TreeSet.class); // Заполним Multimap int i = 0; for(String word: words) { multiMap.put(word, i); i++; } // Выводим все вхождения слов в текст System.out.println(multiMap); // напечатает {All!=[3], Hello=[0, 2], Hi=[4], World!=[1, 5]} -в натуральном порядке // Выводим все уникальные слова System.out.println(multiMap.keySet()); // напечатает [All!, Hello, Hi, World!] в натуральном порядке // Выводим все индексы вхождения слова в текст System.out.println("Hello = " + multiMap.get("Hello")); // напечатает [0, 2] System.out.println("World = " + multiMap.get("World!")); // напечатает [1, 5] System.out.println("All = " + multiMap.get("All!")); // напечатает [3] System.out.println("Hi = " + multiMap.get("Hi")); // напечатает [4] System.out.println("Empty = " + multiMap.get("Empty")); // напечатает null // Выводим общее количество всех уникальных слов System.out.println(multiMap.keySet().size()); //напечатает 4 }
private void plantTrees() { // Box testMesh = new Box(1, 1, 1); // Material testMat = new Material(app.getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md"); // testMat.setColor("Color", ColorRGBA.Red); //bucketing for speed improvement MultiMap<TreeInfo, TreeNode> nodes = new MultiValueMap<>(); //first, simple planting algorithm float density = 0.2f / size; Random rand = new Random(); Biome[] allBiomes = Biome.values(); for (int x=0; x<biomes.getSize(); ++x) { for (int y=0; y<biomes.getSize(); ++y) { if (map.getHeightAt(x, y)<=0) { continue; } //check if we can plant here if (rand.nextFloat() > density) { continue; } //find highest scoring biome float[] v = biomes.getVectorAt(x, y); float max = 0; Biome biome = null; for (int i=0; i<v.length; ++i) { if (v[i]>max) { max = v[i]; biome = allBiomes[i]; } } if (biome == null) { LOG.log(Level.WARNING, "no biome found at ({0},{1})", new Object[]{x, y}); continue; } //get tree sample Pair<Float, TreeInfo>[] trees = TREES.get(biome); float f = rand.nextFloat(); TreeInfo tree = null; for (int i=0; i<trees.length; ++i) { if (trees[i].getLeft() > f) { tree = trees[i].getRight(); break; } } if (tree == null) { continue; } //create tree node TreeNode treeNode = new TreeNode(tree, app.getAssetManager(), app.getCamera()); treeNode.setUseHighRes(false); // Geometry treeNode = new Geometry("tree", testMesh); // treeNode.setMaterial(testMat); treeNode.setLocalScale(size); treeNode.rotate(-FastMath.HALF_PI, 0, 0); Vector3f pos = app.getHeightmapPoint(x + rand.nextFloat() - 0.5f, y + rand.nextFloat() - 0.5f); pos.x *= scaleFactor; pos.z *= scaleFactor; treeNode.setLocalTranslation(pos); nodes.put(tree, treeNode); } } for (Map.Entry<TreeInfo, Object> entries : nodes.entrySet()) { Collection<TreeNode> col = (Collection<TreeNode>) entries.getValue(); for (TreeNode n : col) { sceneNode.attachChild(n); } } LOG.info(sceneNode.getChildren().size()+" trees planted"); }
/** * Closes the box: the cells are surrounded by a box with the specified * dimensions. All border cells that were previous at infinity are capped * at that box. * @param edges the list of edges, this list is destroyed * @param w the width of the box * @param h the height of the box * @return the list with the edges clamped to the borders */ public static List<Edge> closeEdges(List<Edge> edges, float w, float h) { ArrayList<Edge> output = new ArrayList<>(); MultiMap<Vector2d, Vector2d> borders = new MultiValueMap<>(); for (Edge edge : edges) { boolean sInside = isInside(edge.start, w, h); boolean eInside = isInside(edge.end, w, h); if (sInside && eInside) { output.add(edge); //normal edge inside continue; } else if (!sInside && !eInside) { continue; //completely outside, ignore it } //border edge, cut with border Vector2d p = edgeBoxIntersection(edge, w, h); if (sInside) { edge.end = p; } else { edge.start = p; } output.add(edge); borders.put(edge.left, p); borders.put(edge.right, p); } //connect borders // ArrayList<Vector2d> borderCenters = new ArrayList<>(); // borderCenters.addAll(borders.keySet()); // for (Vector2d center : borders.keySet()) { // @SuppressWarnings("unchecked") // Collection<Vector2d> ex = (Collection<Vector2d>) borders.get(center); // if (ex.size() == 2) { // Vector2d[] points = ex.toArray(new Vector2d[2]); // Edge e = new Edge(); // e.start = points[0]; // e.end = points[1]; // e.left = center; // output.add(e); // } else { // System.err.println("illegal edge borders: "+center+" -> "+ex); // errors.add(center); //for some reason, these cannot be processed, use extra step // } // } // //process erounous centers // for (Vector2d center : borderCenters) { // //Find corners // DefaultedMap<Vector2d, Integer> cornerCounter = new DefaultedMap<>(0); // for (Edge e : output) { // if (e.left == center || e.right == center) { // cornerCounter.put(e.start, cornerCounter.get(e.start) + 1); // cornerCounter.put(e.end, cornerCounter.get(e.end) + 1); // } // } //// System.err.println("corner counter for center "+center+": "+cornerCounter); // ArrayList<Vector2d> corners = new ArrayList<>(2); // for (Map.Entry<Vector2d, Integer> entry : cornerCounter.entrySet()) { // if (entry.getValue()==1) { // corners.add(entry.getKey()); // } // } // if (corners.size() == 2) { // Edge e = new Edge(); // e.start = corners.get(0); // e.end = corners.get(1); // e.left = center; // output.add(e); // } else { // System.err.println("illegal corner map"); // } // } return output; }