public abstract class com.google.common.collect.testing.AbstractContainerTester extends com.google.common.collect.testing.AbstractTester
{
protected com.google.common.collect.testing.SampleElements samples;
protected java.lang.Object container;
public void <init>()
{
com.google.common.collect.testing.AbstractContainerTester v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
specialinvoke v.<com.google.common.collect.testing.AbstractTester: void <init>()>();
return;
}
public void setUp() throws java.lang.Exception
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v;
com.google.common.collect.testing.SampleElements v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
specialinvoke v.<com.google.common.collect.testing.AbstractTester: void setUp()>();
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: com.google.common.collect.testing.SampleElements samples()>();
v.<com.google.common.collect.testing.AbstractContainerTester: com.google.common.collect.testing.SampleElements samples> = v;
virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object resetContainer()>();
return;
}
protected abstract java.util.Collection actualContents();
protected java.lang.Object resetContainer()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v, v, v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Object createTestSubject()>();
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object resetContainer(java.lang.Object)>(v);
return v;
}
protected java.lang.Object resetContainer(java.lang.Object)
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v, v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: java.lang.Object;
v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object container> = v;
v = v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object container>;
return v;
}
protected final transient void expectContents(java.lang.Object[])
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.List v;
java.lang.Object[] v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: java.lang.Object[];
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: void expectContents(java.util.Collection)>(v);
return;
}
protected void expectContents(java.util.Collection)
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.Collection v, v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: java.util.Collection;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection actualContents()>();
staticinvoke <com.google.common.collect.testing.Helpers: void assertEqualIgnoringOrder(java.lang.Iterable,java.lang.Iterable)>(v, v);
return;
}
protected void expectUnchanged()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.List v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.List getOrderedElements()>();
virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: void expectContents(java.util.Collection)>(v);
return;
}
protected final transient void expectAdded(java.lang.Object[])
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.List v, v;
java.lang.Object[] v;
java.util.Collection v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: java.lang.Object[];
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection getSampleElements()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
interfaceinvoke v.<java.util.List: boolean addAll(java.util.Collection)>(v);
virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: void expectContents(java.util.Collection)>(v);
return;
}
protected final transient void expectAdded(int, java.lang.Object[])
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.List v;
java.lang.Object[] v;
int v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: int;
v := @parameter: java.lang.Object[];
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: void expectAdded(int,java.util.Collection)>(v, v);
return;
}
protected final void expectAdded(int, java.util.Collection)
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.List v;
java.util.Collection v, v;
int v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: int;
v := @parameter: java.util.Collection;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection getSampleElements()>();
v = staticinvoke <com.google.common.collect.testing.Helpers: java.util.List copyToList(java.lang.Iterable)>(v);
interfaceinvoke v.<java.util.List: boolean addAll(int,java.util.Collection)>(v, v);
virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: void expectContents(java.util.Collection)>(v);
return;
}
protected transient void expectMissing(java.lang.Object[])
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object[] v;
java.util.Collection v;
int v, v;
java.lang.Object v;
java.lang.String v;
boolean v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: java.lang.Object[];
v = lengthof v;
v = 0;
label:
if v >= v goto label;
v = v[v];
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.Object)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Should not contain \u0001");
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection actualContents()>();
v = interfaceinvoke v.<java.util.Collection: boolean contains(java.lang.Object)>(v);
staticinvoke <com.google.common.collect.testing.AbstractContainerTester: void assertFalse(java.lang.String,boolean)>(v, v);
v = v + 1;
goto label;
label:
return;
}
protected java.lang.Object[] createSamplesArray()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object[] v;
java.util.Collection v;
int v;
java.lang.Object v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: int getNumElements()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Object[] createArray(int)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection getSampleElements()>();
interfaceinvoke v.<java.util.Collection: java.lang.Object[] toArray(java.lang.Object[])>(v);
return v;
}
protected java.lang.Object[] createOrderedArray()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.List v;
java.lang.Object[] v;
int v;
java.lang.Object v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: int getNumElements()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Object[] createArray(int)>(v);
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.List getOrderedElements()>();
interfaceinvoke v.<java.util.List: java.lang.Object[] toArray(java.lang.Object[])>(v);
return v;
}
protected com.google.common.collect.testing.AbstractContainerTester$ArrayWithDuplicate createArrayWithDuplicateElement()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object[] v;
int v, v, v, v, v, v;
java.lang.Object v;
com.google.common.collect.testing.AbstractContainerTester$ArrayWithDuplicate v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object[] createSamplesArray()>();
v = lengthof v;
v = v / 2;
v = v - 1;
v = v[v];
v = lengthof v;
v = v / 2;
v = v + 1;
v[v] = v;
v = new com.google.common.collect.testing.AbstractContainerTester$ArrayWithDuplicate;
specialinvoke v.<com.google.common.collect.testing.AbstractContainerTester$ArrayWithDuplicate: void <init>(java.lang.Object[],java.lang.Object)>(v, v);
return v;
}
protected int getNumElements()
{
com.google.common.collect.testing.AbstractContainerTester v;
int v;
java.lang.Object v;
com.google.common.collect.testing.features.CollectionSize v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: com.google.common.collect.testing.features.CollectionSize getCollectionSize()>();
v = virtualinvoke v.<com.google.common.collect.testing.features.CollectionSize: int getNumElements()>();
return v;
}
protected java.util.Collection getSampleElements(int)
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.Collection v;
int v;
java.lang.Object v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v := @parameter: int;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.util.Collection getSampleElements(int)>(v);
return v;
}
protected java.util.Collection getSampleElements()
{
int v;
com.google.common.collect.testing.AbstractContainerTester v;
java.util.Collection v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: int getNumElements()>();
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection getSampleElements(int)>(v);
return v;
}
protected java.util.List getOrderedElements()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.util.Iterator v;
java.util.Collection v;
java.lang.Iterable v;
java.util.ArrayList v, v;
java.util.List v;
java.lang.Object v, v;
boolean v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object getSubjectGenerator()>();
v = new java.util.ArrayList;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.util.Collection getSampleElements()>();
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Iterable order(java.util.List)>(v);
v = interfaceinvoke v.<java.lang.Iterable: 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()>();
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
return v;
}
protected int getNullLocation()
{
int v, v;
com.google.common.collect.testing.AbstractContainerTester v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: int getNumElements()>();
v = v / 2;
return v;
}
protected com.google.common.collect.testing.MinimalCollection createDisjointCollection()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object[] v;
java.lang.Object v, v;
com.google.common.collect.testing.MinimalCollection v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = newarray (java.lang.Object)[2];
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object e3()>();
v[0] = v;
v = virtualinvoke v.<com.google.common.collect.testing.AbstractContainerTester: java.lang.Object e4()>();
v[1] = v;
v = staticinvoke <com.google.common.collect.testing.MinimalCollection: com.google.common.collect.testing.MinimalCollection of(java.lang.Object[])>(v);
return v;
}
protected com.google.common.collect.testing.MinimalCollection emptyCollection()
{
com.google.common.collect.testing.AbstractContainerTester v;
com.google.common.collect.testing.MinimalCollection v;
java.lang.Object[] v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = newarray (java.lang.Object)[0];
v = staticinvoke <com.google.common.collect.testing.MinimalCollection: com.google.common.collect.testing.MinimalCollection of(java.lang.Object[])>(v);
return v;
}
protected final java.lang.Object e0()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v;
com.google.common.collect.testing.SampleElements v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = v.<com.google.common.collect.testing.AbstractContainerTester: com.google.common.collect.testing.SampleElements samples>;
v = virtualinvoke v.<com.google.common.collect.testing.SampleElements: java.lang.Object e0()>();
return v;
}
protected final java.lang.Object e1()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v;
com.google.common.collect.testing.SampleElements v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = v.<com.google.common.collect.testing.AbstractContainerTester: com.google.common.collect.testing.SampleElements samples>;
v = virtualinvoke v.<com.google.common.collect.testing.SampleElements: java.lang.Object e1()>();
return v;
}
protected final java.lang.Object e2()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v;
com.google.common.collect.testing.SampleElements v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = v.<com.google.common.collect.testing.AbstractContainerTester: com.google.common.collect.testing.SampleElements samples>;
v = virtualinvoke v.<com.google.common.collect.testing.SampleElements: java.lang.Object e2()>();
return v;
}
protected final java.lang.Object e3()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v;
com.google.common.collect.testing.SampleElements v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = v.<com.google.common.collect.testing.AbstractContainerTester: com.google.common.collect.testing.SampleElements samples>;
v = virtualinvoke v.<com.google.common.collect.testing.SampleElements: java.lang.Object e3()>();
return v;
}
protected final java.lang.Object e4()
{
com.google.common.collect.testing.AbstractContainerTester v;
java.lang.Object v;
com.google.common.collect.testing.SampleElements v;
v := @this: com.google.common.collect.testing.AbstractContainerTester;
v = v.<com.google.common.collect.testing.AbstractContainerTester: com.google.common.collect.testing.SampleElements samples>;
v = virtualinvoke v.<com.google.common.collect.testing.SampleElements: java.lang.Object e4()>();
return v;
}
}