public class com.google.common.collect.testing.google.MultisetRemoveTester extends com.google.common.collect.testing.google.AbstractMultisetTester
{
public void <init>()
{
com.google.common.collect.testing.google.MultisetRemoveTester v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
specialinvoke v.<com.google.common.collect.testing.google.AbstractMultisetTester: void <init>()>();
return;
}
public void testRemoveNegative()
{
com.google.common.collect.Multiset v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v;
java.lang.Object v;
java.lang.IllegalArgumentException v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = (int) -1;
interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void fail(java.lang.String)>("Expected IllegalArgumentException");
label:
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void expectUnchanged()>();
return;
catch java.lang.IllegalArgumentException from label to label with label;
}
public void testRemoveUnsupported()
{
java.lang.UnsupportedOperationException v;
com.google.common.collect.Multiset v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
java.lang.Object v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void fail(java.lang.String)>("Expected UnsupportedOperationException");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.UnsupportedOperationException from label to label with label;
}
public void testRemoveZeroNoOp()
{
com.google.common.collect.Multiset v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v, v;
java.lang.Object v, v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int count(java.lang.Object)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 0);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("old count", v, v);
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void expectUnchanged()>();
return;
}
public void testRemove_occurrences_present()
{
com.google.common.collect.Multiset v, v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v, v;
java.lang.Object v, v, v;
boolean v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("multiset.remove(present, 2) didn\'t return the old count", 1, v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertFalse(java.lang.String,boolean)>("multiset contains present after multiset.remove(present, 2)", v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int count(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(int,int)>(0, v);
return;
}
public void testRemove_some_occurrences_present()
{
com.google.common.collect.Multiset v, v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v, v;
java.lang.Object v, v, v;
boolean v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void initThreeCopies()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("multiset.remove(present, 2) didn\'t return the old count", 3, v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertTrue(java.lang.String,boolean)>("multiset contains present after multiset.remove(present, 2)", v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int count(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(int,int)>(1, v);
return;
}
public void testRemove_occurrences_absent()
{
com.google.common.collect.Multiset v, v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
java.util.Set v, v;
int v, v, v;
java.lang.Object v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: java.util.Set elementSet()>();
v = interfaceinvoke v.<java.util.Set: int size()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e3()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("multiset.remove(absent, 0) didn\'t return 0", 0, v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: java.util.Set elementSet()>();
v = interfaceinvoke v.<java.util.Set: int size()>();
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(int,int)>(v, v);
return;
}
public void testRemove_occurrences_unsupported_absent()
{
java.lang.UnsupportedOperationException v;
com.google.common.collect.Multiset v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v;
java.lang.Object v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e3()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("multiset.remove(absent, 2) didn\'t return 0 or throw an exception", 0, v);
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.UnsupportedOperationException from label to label with label;
}
public void testRemove_occurrences_0()
{
com.google.common.collect.Multiset v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v, v;
java.lang.Object v, v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int count(java.lang.Object)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 0);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("multiset.remove(E, 0) didn\'t return the old count", v, v);
return;
}
public void testRemove_occurrences_negative()
{
com.google.common.collect.Multiset v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v;
java.lang.Object v;
java.lang.IllegalArgumentException v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = (int) -1;
interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void fail(java.lang.String)>("multiset.remove(E, -1) didn\'t throw an exception");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.IllegalArgumentException from label to label with label;
}
public void testRemove_occurrences_wrongType()
{
com.google.common.collect.Multiset v;
com.google.common.collect.testing.WrongType v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = <com.google.common.collect.testing.WrongType: com.google.common.collect.testing.WrongType VALUE>;
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(v, 1);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(java.lang.String,int,int)>("multiset.remove(wrongType, 1) didn\'t return 0", 0, v);
return;
}
public void testRemove_nullPresent()
{
com.google.common.collect.Multiset v, v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v, v;
boolean v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void initCollectionWithNullElement()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(null, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(int,int)>(1, v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: boolean contains(java.lang.Object)>(null);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertFalse(java.lang.String,boolean)>("multiset contains present after multiset.remove(present, 2)", v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int count(java.lang.Object)>(null);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(int,int)>(0, v);
return;
}
public void testRemove_nullAbsent()
{
com.google.common.collect.testing.google.MultisetRemoveTester v;
int v;
com.google.common.collect.Multiset v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(null, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertEquals(int,int)>(0, v);
return;
}
public void testRemove_nullForbidden()
{
com.google.common.collect.testing.google.MultisetRemoveTester v;
com.google.common.collect.Multiset v;
java.lang.NullPointerException v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
interfaceinvoke v.<com.google.common.collect.Multiset: int remove(java.lang.Object,int)>(null, 2);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void fail(java.lang.String)>("Expected NullPointerException");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.NullPointerException from label to label with label;
}
public void testRemoveAllIgnoresCount()
{
com.google.common.collect.Multiset v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
java.util.Set v;
java.lang.Object v;
boolean v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void initThreeCopies()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = staticinvoke <java.util.Collections: java.util.Set singleton(java.lang.Object)>(v);
v = interfaceinvoke v.<com.google.common.collect.Multiset: boolean removeAll(java.util.Collection)>(v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertTrue(boolean)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
staticinvoke <com.google.common.collect.testing.Helpers: void assertEmpty(java.lang.Iterable)>(v);
return;
}
public void testRetainAllIgnoresCount()
{
java.util.List v;
com.google.common.collect.Multiset v, v;
com.google.common.collect.testing.google.MultisetRemoveTester v;
java.util.Set v;
java.lang.Object v;
boolean v;
v := @this: com.google.common.collect.testing.google.MultisetRemoveTester;
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void initThreeCopies()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: com.google.common.collect.Multiset getMultiset()>();
v = virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: java.lang.Object e0()>();
v = staticinvoke <java.util.Collections: java.util.Set singleton(java.lang.Object)>(v);
v = interfaceinvoke v.<com.google.common.collect.Multiset: boolean retainAll(java.util.Collection)>(v);
staticinvoke <com.google.common.collect.testing.google.MultisetRemoveTester: void assertFalse(boolean)>(v);
virtualinvoke v.<com.google.common.collect.testing.google.MultisetRemoveTester: void expectContents(java.util.Collection)>(v);
return;
}
public static java.util.List getRemoveDuplicateInitializingMethods()
{
java.util.List v;
java.lang.reflect.Method v;
java.lang.reflect.Method[] v;
v = newarray (java.lang.reflect.Method)[1];
v = staticinvoke <com.google.common.collect.testing.Helpers: java.lang.reflect.Method getMethod(java.lang.Class,java.lang.String)>(class "Lcom/google/common/collect/testing/google/MultisetRemoveTester;", "testRemove_some_occurrences_present");
v[0] = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
return v;
}
}