390 |
|
sum[0] = 0; |
391 |
|
if (x.contains(sneakyAdder)) throw new AssertionError(); |
392 |
|
check.sum(sum[0]);}}}, |
393 |
+ |
new Job(klazz + " containsAll") { |
394 |
+ |
public void work() throws Throwable { |
395 |
+ |
int[] sum = new int[1]; |
396 |
+ |
Collection<Object> sneakyAdderCollection = |
397 |
+ |
Collections.singleton(sneakyAdder(sum)); |
398 |
+ |
for (int i = 0; i < iterations; i++) { |
399 |
+ |
sum[0] = 0; |
400 |
+ |
if (x.containsAll(sneakyAdderCollection)) |
401 |
+ |
throw new AssertionError(); |
402 |
+ |
check.sum(sum[0]);}}}, |
403 |
|
new Job(klazz + " remove(Object)") { |
404 |
|
public void work() throws Throwable { |
405 |
|
int[] sum = new int[1]; |