public class com.google.common.collect.testing.testers.CollectionCreationTester extends com.google.common.collect.testing.AbstractCollectionTester
{
public void <init>()
{
com.google.common.collect.testing.testers.CollectionCreationTester v;
v := @this: com.google.common.collect.testing.testers.CollectionCreationTester;
specialinvoke v.<com.google.common.collect.testing.AbstractCollectionTester: void <init>()>();
return;
}
public void testCreateWithNull_supported()
{
java.lang.Object[] v;
com.google.common.collect.testing.testers.CollectionCreationTester v;
java.lang.Object v, v;
v := @this: com.google.common.collect.testing.testers.CollectionCreationTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.CollectionCreationTester: java.lang.Object[] createArrayWithNullElement()>();
v = virtualinvoke v.<com.google.common.collect.testing.testers.CollectionCreationTester: java.lang.Object getSubjectGenerator()>();
v = interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Object create(java.lang.Object[])>(v);
v.<com.google.common.collect.testing.testers.CollectionCreationTester: java.util.Collection collection> = v;
virtualinvoke v.<com.google.common.collect.testing.testers.CollectionCreationTester: void expectContents(java.lang.Object[])>(v);
return;
}
public void testCreateWithNull_unsupported()
{
java.lang.Object[] v;
com.google.common.collect.testing.testers.CollectionCreationTester v;
java.lang.Object v;
java.lang.NullPointerException v;
v := @this: com.google.common.collect.testing.testers.CollectionCreationTester;
v = virtualinvoke v.<com.google.common.collect.testing.testers.CollectionCreationTester: java.lang.Object[] createArrayWithNullElement()>();
label:
v = virtualinvoke v.<com.google.common.collect.testing.testers.CollectionCreationTester: java.lang.Object getSubjectGenerator()>();
interfaceinvoke v.<com.google.common.collect.testing.OneSizeTestContainerGenerator: java.lang.Object create(java.lang.Object[])>(v);
staticinvoke <com.google.common.collect.testing.testers.CollectionCreationTester: void fail(java.lang.String)>("Creating a collection containing null should fail");
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.lang.NullPointerException from label to label with label;
}
public static java.lang.reflect.Method getCreateWithNullUnsupportedMethod()
{
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/CollectionCreationTester;", "testCreateWithNull_unsupported");
return v;
}
}