public class com.google.common.testing.TestLogHandlerTest extends junit.framework.TestCase
{
private com.google.common.testing.TestLogHandler handler;
private com.google.common.testing.TearDownStack stack;
static final java.lang.Exception EXCEPTION;
public void <init>()
{
com.google.common.testing.TearDownStack v;
com.google.common.testing.TestLogHandlerTest v;
v := @this: com.google.common.testing.TestLogHandlerTest;
specialinvoke v.<junit.framework.TestCase: void <init>()>();
v = new com.google.common.testing.TearDownStack;
specialinvoke v.<com.google.common.testing.TearDownStack: void <init>()>();
v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TearDownStack stack> = v;
return;
}
protected void setUp() throws java.lang.Exception
{
com.google.common.testing.TestLogHandlerTest v;
com.google.common.testing.TestLogHandlerTest$1 v;
com.google.common.testing.TestLogHandler v, v;
java.util.logging.Logger v, v;
com.google.common.testing.TearDownStack v;
v := @this: com.google.common.testing.TestLogHandlerTest;
specialinvoke v.<junit.framework.TestCase: void setUp()>();
v = new com.google.common.testing.TestLogHandler;
specialinvoke v.<com.google.common.testing.TestLogHandler: void <init>()>();
v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TestLogHandler handler> = v;
v = <com.google.common.testing.TestLogHandlerTest$ExampleClassUnderTest: java.util.logging.Logger logger>;
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TestLogHandler handler>;
virtualinvoke v.<java.util.logging.Logger: void addHandler(java.util.logging.Handler)>(v);
v = <com.google.common.testing.TestLogHandlerTest$ExampleClassUnderTest: java.util.logging.Logger logger>;
virtualinvoke v.<java.util.logging.Logger: void setUseParentHandlers(boolean)>(0);
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TearDownStack stack>;
v = new com.google.common.testing.TestLogHandlerTest$1;
specialinvoke v.<com.google.common.testing.TestLogHandlerTest$1: void <init>(com.google.common.testing.TestLogHandlerTest)>(v);
virtualinvoke v.<com.google.common.testing.TearDownStack: void addTearDown(com.google.common.testing.TearDown)>(v);
return;
}
public void test() throws java.lang.Exception
{
java.lang.Throwable v;
com.google.common.testing.TestLogHandlerTest v;
java.lang.Exception v;
java.util.logging.Level v, v;
java.util.List v, v;
java.lang.Object v;
com.google.common.testing.TestLogHandler v, v;
java.lang.String v;
boolean v;
v := @this: com.google.common.testing.TestLogHandlerTest;
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TestLogHandler handler>;
v = virtualinvoke v.<com.google.common.testing.TestLogHandler: java.util.List getStoredLogRecords()>();
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest: void assertTrue(boolean)>(v);
staticinvoke <com.google.common.testing.TestLogHandlerTest$ExampleClassUnderTest: void foo()>();
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TestLogHandler handler>;
v = virtualinvoke v.<com.google.common.testing.TestLogHandler: java.util.List getStoredLogRecords()>();
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = <java.util.logging.Level: java.util.logging.Level INFO>;
v = virtualinvoke v.<java.util.logging.LogRecord: java.util.logging.Level getLevel()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = virtualinvoke v.<java.util.logging.LogRecord: java.lang.String getMessage()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest: void assertEquals(java.lang.String,java.lang.String)>("message", v);
v = <com.google.common.testing.TestLogHandlerTest: java.lang.Exception EXCEPTION>;
v = virtualinvoke v.<java.util.logging.LogRecord: java.lang.Throwable getThrown()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest: void assertSame(java.lang.Object,java.lang.Object)>(v, v);
return;
}
public void testConcurrentModification() throws java.lang.Exception
{
java.util.Iterator v;
com.google.common.testing.TestLogHandlerTest v;
java.util.List v, v;
com.google.common.testing.TestLogHandler v, v;
boolean v, v;
v := @this: com.google.common.testing.TestLogHandlerTest;
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TestLogHandler handler>;
v = virtualinvoke v.<com.google.common.testing.TestLogHandler: java.util.List getStoredLogRecords()>();
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest: void assertTrue(boolean)>(v);
staticinvoke <com.google.common.testing.TestLogHandlerTest$ExampleClassUnderTest: void foo()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest$ExampleClassUnderTest: void foo()>();
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TestLogHandler handler>;
v = virtualinvoke v.<com.google.common.testing.TestLogHandler: java.util.List getStoredLogRecords()>();
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
staticinvoke <com.google.common.testing.TestLogHandlerTest$ExampleClassUnderTest: void foo()>();
goto label;
label:
return;
}
public final void runBare() throws java.lang.Throwable
{
java.lang.Throwable v;
com.google.common.testing.TestLogHandlerTest v;
v := @this: com.google.common.testing.TestLogHandlerTest;
label:
virtualinvoke v.<com.google.common.testing.TestLogHandlerTest: void setUp()>();
virtualinvoke v.<com.google.common.testing.TestLogHandlerTest: void runTest()>();
label:
virtualinvoke v.<com.google.common.testing.TestLogHandlerTest: void tearDown()>();
goto label;
label:
v := @caughtexception;
virtualinvoke v.<com.google.common.testing.TestLogHandlerTest: void tearDown()>();
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
protected void tearDown()
{
com.google.common.testing.TearDownStack v;
com.google.common.testing.TestLogHandlerTest v;
v := @this: com.google.common.testing.TestLogHandlerTest;
v = v.<com.google.common.testing.TestLogHandlerTest: com.google.common.testing.TearDownStack stack>;
virtualinvoke v.<com.google.common.testing.TearDownStack: void runTearDown()>();
return;
}
static void <clinit>()
{
java.lang.Exception v;
v = new java.lang.Exception;
specialinvoke v.<java.lang.Exception: void <init>()>();
<com.google.common.testing.TestLogHandlerTest: java.lang.Exception EXCEPTION> = v;
return;
}
}