public class com.google.common.collect.testing.testers.ListRemoveAtIndexTester extends com.google.common.collect.testing.testers.AbstractListTester
{
public void <init>()
{
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
specialinvoke v.<com.google.common.collect.testing.testers.AbstractListTester: void <init>()>();
return;
}
public void testRemoveAtIndex_unsupported()
{
java.lang.UnsupportedOperationException v;
java.util.List v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.List getList()>();
interfaceinvoke v.<java.util.List: java.lang.Object remove(int)>(0);
staticinvoke <com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void fail(java.lang.String)>("remove(i) should throw");
label:
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void expectUnchanged()>();
return;
catch java.lang.UnsupportedOperationException from label to label with label;
}
public void testRemoveAtIndex_negative()
{
java.lang.IndexOutOfBoundsException v;
java.util.List v;
int v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.List getList()>();
v = (int) -1;
interfaceinvoke v.<java.util.List: java.lang.Object remove(int)>(v);
staticinvoke <com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void fail(java.lang.String)>("remove(-1) should throw");
label:
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void expectUnchanged()>();
return;
catch java.lang.IndexOutOfBoundsException from label to label with label;
}
public void testRemoveAtIndex_tooLarge()
{
java.lang.IndexOutOfBoundsException v;
java.util.List v;
int v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.List getList()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: int getNumElements()>();
interfaceinvoke v.<java.util.List: java.lang.Object remove(int)>(v);
staticinvoke <com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void fail(java.lang.String)>("remove(size) should throw");
label:
goto label;
label:
v := @caughtexception;
label:
virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void expectUnchanged()>();
return;
catch java.lang.IndexOutOfBoundsException from label to label with label;
}
public void testRemoveAtIndex_first()
{
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
specialinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void runRemoveTest(int)>(0);
return;
}
public void testRemoveAtIndex_middle()
{
int v, v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: int getNumElements()>();
v = v / 2;
specialinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void runRemoveTest(int)>(v);
return;
}
public void testRemoveAtIndexConcurrentWithIteration()
{
java.util.List v;
java.util.Iterator v;
java.util.Collection v;
int v, v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
java.util.ConcurrentModificationException v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
label:
v = v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.Collection collection>;
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.List getList()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: int getNumElements()>();
v = v / 2;
interfaceinvoke v.<java.util.List: java.lang.Object remove(int)>(v);
interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
staticinvoke <com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void fail(java.lang.String)>("Expected ConcurrentModificationException");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.util.ConcurrentModificationException from label to label with label;
}
public void testRemoveAtIndex_last()
{
int v, v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: int getNumElements()>();
v = v - 1;
specialinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void runRemoveTest(int)>(v);
return;
}
private void runRemoveTest(int)
{
java.lang.Object[] v, v;
java.lang.Integer v, v;
java.util.List v, v, v;
int v;
java.lang.Object v, v;
java.lang.String v;
com.google.common.collect.testing.testers.ListRemoveAtIndexTester v;
v := @this: com.google.common.collect.testing.testers.ListRemoveAtIndexTester;
v := @parameter: int;
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[1] = v;
v = staticinvoke <com.google.common.collect.testing.testers.Platform: java.lang.String format(java.lang.String,java.lang.Object[])>("remove(%d) should return the element at index %d", v);
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.List getList()>();
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.util.List getList()>();
v = interfaceinvoke v.<java.util.List: java.lang.Object remove(int)>(v);
staticinvoke <com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void assertEquals(java.lang.String,java.lang.Object,java.lang.Object)>(v, v, v);
v = virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: java.lang.Object[] createSamplesArray()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Object[])>(v);
interfaceinvoke v.<java.util.List: java.lang.Object remove(int)>(v);
virtualinvoke v.<com.google.common.collect.testing.testers.ListRemoveAtIndexTester: void expectContents(java.util.Collection)>(v);
return;
}
}