public class junit.framework.JUnit4TestAdapter extends java.lang.Object implements junit.framework.Test, org.junit.runner.manipulation.Filterable, org.junit.runner.manipulation.Orderable, org.junit.runner.Describable
{
private final java.lang.Class fNewTestClass;
private final org.junit.runner.Runner fRunner;
private final junit.framework.JUnit4TestAdapterCache fCache;
public void <init>(java.lang.Class)
{
junit.framework.JUnit4TestAdapterCache v;
java.lang.Class v;
junit.framework.JUnit4TestAdapter v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: java.lang.Class;
v = staticinvoke <junit.framework.JUnit4TestAdapterCache: junit.framework.JUnit4TestAdapterCache getDefault()>();
specialinvoke v.<junit.framework.JUnit4TestAdapter: void <init>(java.lang.Class,junit.framework.JUnit4TestAdapterCache)>(v, v);
return;
}
public void <init>(java.lang.Class, junit.framework.JUnit4TestAdapterCache)
{
junit.framework.JUnit4TestAdapterCache v;
org.junit.runner.Request v;
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
java.lang.Class v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: java.lang.Class;
v := @parameter: junit.framework.JUnit4TestAdapterCache;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<junit.framework.JUnit4TestAdapter: junit.framework.JUnit4TestAdapterCache fCache> = v;
v.<junit.framework.JUnit4TestAdapter: java.lang.Class fNewTestClass> = v;
v = staticinvoke <org.junit.runner.Request: org.junit.runner.Request classWithoutSuiteMethod(java.lang.Class)>(v);
v = virtualinvoke v.<org.junit.runner.Request: org.junit.runner.Runner getRunner()>();
v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner> = v;
return;
}
public int countTestCases()
{
int v;
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
v := @this: junit.framework.JUnit4TestAdapter;
v = v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner>;
v = virtualinvoke v.<org.junit.runner.Runner: int testCount()>();
return v;
}
public void run(junit.framework.TestResult)
{
junit.framework.JUnit4TestAdapterCache v;
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
junit.framework.TestResult v;
org.junit.runner.notification.RunNotifier v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: junit.framework.TestResult;
v = v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner>;
v = v.<junit.framework.JUnit4TestAdapter: junit.framework.JUnit4TestAdapterCache fCache>;
v = virtualinvoke v.<junit.framework.JUnit4TestAdapterCache: org.junit.runner.notification.RunNotifier getNotifier(junit.framework.TestResult,junit.framework.JUnit4TestAdapter)>(v, v);
virtualinvoke v.<org.junit.runner.Runner: void run(org.junit.runner.notification.RunNotifier)>(v);
return;
}
public java.util.List getTests()
{
junit.framework.JUnit4TestAdapterCache v;
java.util.List v;
junit.framework.JUnit4TestAdapter v;
org.junit.runner.Description v;
v := @this: junit.framework.JUnit4TestAdapter;
v = v.<junit.framework.JUnit4TestAdapter: junit.framework.JUnit4TestAdapterCache fCache>;
v = virtualinvoke v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Description getDescription()>();
v = virtualinvoke v.<junit.framework.JUnit4TestAdapterCache: java.util.List asTestList(org.junit.runner.Description)>(v);
return v;
}
public java.lang.Class getTestClass()
{
java.lang.Class v;
junit.framework.JUnit4TestAdapter v;
v := @this: junit.framework.JUnit4TestAdapter;
v = v.<junit.framework.JUnit4TestAdapter: java.lang.Class fNewTestClass>;
return v;
}
public org.junit.runner.Description getDescription()
{
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
org.junit.runner.Description v, v;
v := @this: junit.framework.JUnit4TestAdapter;
v = v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner>;
v = virtualinvoke v.<org.junit.runner.Runner: org.junit.runner.Description getDescription()>();
v = specialinvoke v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Description removeIgnored(org.junit.runner.Description)>(v);
return v;
}
private org.junit.runner.Description removeIgnored(org.junit.runner.Description)
{
java.util.Iterator v;
junit.framework.JUnit4TestAdapter v;
org.junit.runner.Description v, v, v, v;
java.util.ArrayList v;
java.lang.Object v;
boolean v, v, v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: org.junit.runner.Description;
v = specialinvoke v.<junit.framework.JUnit4TestAdapter: boolean isIgnored(org.junit.runner.Description)>(v);
if v == 0 goto label;
v = <org.junit.runner.Description: org.junit.runner.Description EMPTY>;
return v;
label:
v = virtualinvoke v.<org.junit.runner.Description: org.junit.runner.Description childlessCopy()>();
v = virtualinvoke v.<org.junit.runner.Description: java.util.ArrayList getChildren()>();
v = virtualinvoke v.<java.util.ArrayList: 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 = specialinvoke v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Description removeIgnored(org.junit.runner.Description)>(v);
v = virtualinvoke v.<org.junit.runner.Description: boolean isEmpty()>();
if v != 0 goto label;
virtualinvoke v.<org.junit.runner.Description: void addChild(org.junit.runner.Description)>(v);
goto label;
label:
return v;
}
private boolean isIgnored(org.junit.runner.Description)
{
junit.framework.JUnit4TestAdapter v;
java.lang.'annotation'.Annotation v;
org.junit.runner.Description v;
boolean v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: org.junit.runner.Description;
v = virtualinvoke v.<org.junit.runner.Description: java.lang.'annotation'.Annotation getAnnotation(java.lang.Class)>(class "Lorg/junit/Ignore;");
if v == null goto label;
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public java.lang.String toString()
{
java.lang.Class v;
java.lang.String v;
junit.framework.JUnit4TestAdapter v;
v := @this: junit.framework.JUnit4TestAdapter;
v = v.<junit.framework.JUnit4TestAdapter: java.lang.Class fNewTestClass>;
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
return v;
}
public void filter(org.junit.runner.manipulation.Filter) throws org.junit.runner.manipulation.NoTestsRemainException
{
org.junit.runner.manipulation.Filter v;
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: org.junit.runner.manipulation.Filter;
v = v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner>;
virtualinvoke v.<org.junit.runner.manipulation.Filter: void apply(java.lang.Object)>(v);
return;
}
public void sort(org.junit.runner.manipulation.Sorter)
{
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
org.junit.runner.manipulation.Sorter v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: org.junit.runner.manipulation.Sorter;
v = v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner>;
virtualinvoke v.<org.junit.runner.manipulation.Sorter: void apply(java.lang.Object)>(v);
return;
}
public void order(org.junit.runner.manipulation.Orderer) throws org.junit.runner.manipulation.InvalidOrderingException
{
org.junit.runner.manipulation.Orderer v;
org.junit.runner.Runner v;
junit.framework.JUnit4TestAdapter v;
v := @this: junit.framework.JUnit4TestAdapter;
v := @parameter: org.junit.runner.manipulation.Orderer;
v = v.<junit.framework.JUnit4TestAdapter: org.junit.runner.Runner fRunner>;
virtualinvoke v.<org.junit.runner.manipulation.Orderer: void apply(java.lang.Object)>(v);
return;
}
}