public class com.google.common.collect.testing.testers.MapEntrySetTester extends com.google.common.collect.testing.AbstractMapTester
{
public void <init>()
{
com.google.common.collect.testing.testers.MapEntrySetTester v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
specialinvoke v.<com.google.common.collect.testing.AbstractMapTester: void <init>()>();
return;
}
public void testEntrySetIteratorRemove()
{
java.util.Iterator v;
java.util.Set v;
java.util.Map v, v;
java.lang.Object v, v, v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v, v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object e0()>();
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
interfaceinvoke v.<java.util.Iterator: void remove()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: boolean isEmpty()>();
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertTrue(boolean)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object e0()>();
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertFalse(boolean)>(v);
return;
}
public void testContainsEntryWithIncomparableKey()
{
java.util.Map$Entry v;
java.util.Set v;
com.google.common.collect.testing.testers.MapEntrySetTester$IncomparableType v;
java.lang.ClassCastException v;
java.util.Map v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = <com.google.common.collect.testing.testers.MapEntrySetTester$IncomparableType: com.google.common.collect.testing.testers.MapEntrySetTester$IncomparableType INSTANCE>;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object v0()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Map$Entry mapEntry(java.lang.Object,java.lang.Object)>(v, v);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertFalse(boolean)>(v);
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.ClassCastException from label to label with label;
}
public void testContainsEntryWithIncomparableValue()
{
java.util.Map$Entry v;
java.util.Set v;
com.google.common.collect.testing.testers.MapEntrySetTester$IncomparableType v;
java.lang.ClassCastException v;
java.util.Map v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object k0()>();
v = <com.google.common.collect.testing.testers.MapEntrySetTester$IncomparableType: com.google.common.collect.testing.testers.MapEntrySetTester$IncomparableType INSTANCE>;
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Map$Entry mapEntry(java.lang.Object,java.lang.Object)>(v, v);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertFalse(boolean)>(v);
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.ClassCastException from label to label with label;
}
public void testContainsEntryWithNullKeyAbsent()
{
java.util.Map$Entry v;
java.util.Map v;
java.util.Set v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object v0()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Map$Entry mapEntry(java.lang.Object,java.lang.Object)>(null, v);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertFalse(boolean)>(v);
return;
}
public void testContainsEntryWithNullKeyPresent()
{
java.util.Map$Entry v;
java.util.Map v;
java.util.Set v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: void initMapWithNullKey()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object getValueForNullKey()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Map$Entry mapEntry(java.lang.Object,java.lang.Object)>(null, v);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertTrue(boolean)>(v);
return;
}
public void testContainsEntryWithNullValueAbsent()
{
java.util.Map$Entry v;
java.util.Map v;
java.util.Set v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object k0()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Map$Entry mapEntry(java.lang.Object,java.lang.Object)>(v, null);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertFalse(boolean)>(v);
return;
}
public void testContainsEntryWithNullValuePresent()
{
java.util.Map$Entry v;
java.util.Map v;
java.util.Set v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: void initMapWithNullValue()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object getKeyForNullValue()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.Map$Entry mapEntry(java.lang.Object,java.lang.Object)>(v, null);
v = interfaceinvoke v.<java.util.Set: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertTrue(boolean)>(v);
return;
}
public void testSetValue()
{
java.util.Map$Entry v;
java.util.Iterator v;
java.util.Set v;
java.util.Map v;
java.lang.Object v, v, v, v, v, v, v, v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v, v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object k0()>();
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object v0()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object v3()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object setValue(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertEquals(java.lang.String,java.lang.Object,java.lang.Object)>("entry.setValue() should return the old value", v, v);
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object k0()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object v3()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map$Entry entry(java.lang.Object,java.lang.Object)>(v, v);
virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: void expectReplacement(java.util.Map$Entry)>(v);
return;
}
public void testSetValueWithNullValuesPresent()
{
java.util.Map$Entry v;
java.util.Iterator v;
java.util.Set v;
java.util.Map v;
java.lang.Object v, v, v, v, v, v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
boolean v, v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object getKey()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object k0()>();
v = virtualinvoke v.<java.lang.Object: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object v0()>();
v = interfaceinvoke v.<java.util.Map$Entry: java.lang.Object setValue(java.lang.Object)>(null);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void assertEquals(java.lang.String,java.lang.Object,java.lang.Object)>("entry.setValue() should return the old value", v, v);
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.lang.Object k0()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map$Entry entry(java.lang.Object,java.lang.Object)>(v, null);
virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: void expectReplacement(java.util.Map$Entry)>(v);
return;
}
public void testSetValueWithNullValuesAbsent()
{
java.util.Iterator v;
java.util.Map v;
java.util.Set v;
java.lang.Object v;
com.google.common.collect.testing.testers.MapEntrySetTester v;
java.lang.NullPointerException v;
boolean v;
v := @this: com.google.common.collect.testing.testers.MapEntrySetTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: java.util.Map getMap()>();
v = interfaceinvoke v.<java.util.Map: java.util.Set entrySet()>();
v = interfaceinvoke v.<java.util.Set: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
label:
interfaceinvoke v.<java.util.Map$Entry: java.lang.Object setValue(java.lang.Object)>(null);
staticinvoke <com.google.common.collect.testing.testers.MapEntrySetTester: void fail(java.lang.String)>("Expected NullPointerException");
label:
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<com.google.common.collect.testing.testers.MapEntrySetTester: void expectUnchanged()>();
return;
catch java.lang.NullPointerException from label to label with label;
}
public static java.lang.reflect.Method getContainsEntryWithIncomparableKeyMethod()
{
java.lang.reflect.Method v;
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/testers/MapEntrySetTester;", "testContainsEntryWithIncomparableKey");
return v;
}
public static java.lang.reflect.Method getContainsEntryWithIncomparableValueMethod()
{
java.lang.reflect.Method v;
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/testers/MapEntrySetTester;", "testContainsEntryWithIncomparableValue");
return v;
}
public static java.lang.reflect.Method getSetValueMethod()
{
java.lang.reflect.Method v;
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/testers/MapEntrySetTester;", "testSetValue");
return v;
}
public static java.lang.reflect.Method getSetValueWithNullValuesPresentMethod()
{
java.lang.reflect.Method v;
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/testers/MapEntrySetTester;", "testSetValueWithNullValuesPresent");
return v;
}
public static java.lang.reflect.Method getSetValueWithNullValuesAbsentMethod()
{
java.lang.reflect.Method v;
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/testers/MapEntrySetTester;", "testSetValueWithNullValuesAbsent");
return v;
}
}