public class org.apache.zookeeper.common.FileChangeWatcherTest extends org.apache.zookeeper.ZKTestCase
{
private static java.io.File tempDir;
private static java.io.File tempFile;
private static final org.slf4j.Logger LOG;
private static final long FS_TIMEOUT;
public void <init>()
{
org.apache.zookeeper.common.FileChangeWatcherTest v;
v := @this: org.apache.zookeeper.common.FileChangeWatcherTest;
specialinvoke v.<org.apache.zookeeper.ZKTestCase: void <init>()>();
return;
}
public static void createTempFile() throws java.io.IOException
{
java.io.File v, v, v, v;
v = staticinvoke <org.apache.zookeeper.test.ClientBase: java.io.File createEmptyTestDir()>();
<org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir> = v;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = staticinvoke <java.io.File: java.io.File createTempFile(java.lang.String,java.lang.String,java.io.File)>("zk_test_", "", v);
<org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile> = v;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
virtualinvoke v.<java.io.File: void deleteOnExit()>();
return;
}
public static void cleanupTempDir()
{
java.io.IOException v;
java.io.File v;
label:
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
staticinvoke <org.apache.commons.io.FileUtils: void deleteDirectory(java.io.File)>(v);
label:
goto label;
label:
v := @caughtexception;
label:
return;
catch java.io.IOException from label to label with label;
}
public void testCallbackWorksOnFileChanges() throws java.io.IOException, java.lang.InterruptedException
{
java.lang.Throwable v, v;
org.apache.zookeeper.common.FileChangeWatcher$State v, v, v;
java.lang.Integer v;
java.nio.file.WatchEvent$Kind v, v;
java.util.ArrayList v;
java.nio.charset.Charset v;
int v, v, v, v, v, v;
java.lang.String v, v, v;
java.nio.file.Path v;
org.slf4j.Logger v;
org.apache.zookeeper.common.FileChangeWatcherTest v;
java.io.File v, v, v;
java.util.function.Consumer v;
org.apache.zookeeper.common.FileChangeWatcher v, v;
java.lang.Object v, v;
v := @this: org.apache.zookeeper.common.FileChangeWatcherTest;
v = null;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new org.apache.zookeeper.common.FileChangeWatcher;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = virtualinvoke v.<java.io.File: java.nio.file.Path toPath()>();
v = staticinvoke <org.apache.zookeeper.common.FileChangeWatcherTest$lambda_testCallbackWorksOnFileChanges_0__74: java.util.function.Consumer bootstrap$(java.util.List)>(v);
specialinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void <init>(java.nio.file.Path,java.util.function.Consumer)>(v, v);
v = v;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void start()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State RUNNING>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
staticinvoke <java.lang.Thread: void sleep(long)>(1000L);
v = 0;
label:
if v >= 3 goto label;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: org.slf4j.Logger LOG>;
v = v + 1;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String,java.lang.Object)>("Modifying file, attempt {}", v);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(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[])>("Hello world \u0001\n");
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
staticinvoke <org.apache.commons.io.FileUtils: void writeStringToFile(java.io.File,java.lang.String,java.nio.charset.Charset,boolean)>(v, v, v, 1);
entermonitor v;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
v = v + 1;
if v >= v goto label;
virtualinvoke v.<java.lang.Object: void wait(long)>(30000L);
label:
v = v + 1;
v = interfaceinvoke v.<java.util.List: int size()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int,java.lang.String)>(v, v, "Wrong number of events");
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = <java.nio.file.StandardWatchEventKinds: java.nio.file.WatchEvent$Kind ENTRY_MODIFY>;
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.nio.file.WatchEvent$Kind kind()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
v = virtualinvoke v.<java.io.File: java.lang.String getName()>();
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.lang.Object context()>();
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
v = v + 1;
goto label;
label:
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
goto label;
label:
v := @caughtexception;
if v == null goto label;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testCallbackWorksOnFileTouched() throws java.io.IOException, java.lang.InterruptedException
{
java.lang.Throwable v, v;
org.apache.zookeeper.common.FileChangeWatcher$State v, v, v;
java.nio.file.WatchEvent$Kind v, v;
java.util.ArrayList v;
java.lang.String v, v;
java.nio.file.Path v;
boolean v, v;
org.slf4j.Logger v;
org.apache.zookeeper.common.FileChangeWatcherTest v;
java.io.File v, v, v;
java.util.function.Consumer v;
org.apache.zookeeper.common.FileChangeWatcher v, v;
java.lang.Object v, v;
v := @this: org.apache.zookeeper.common.FileChangeWatcherTest;
v = null;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new org.apache.zookeeper.common.FileChangeWatcher;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = virtualinvoke v.<java.io.File: java.nio.file.Path toPath()>();
v = staticinvoke <org.apache.zookeeper.common.FileChangeWatcherTest$lambda_testCallbackWorksOnFileTouched_1__75: java.util.function.Consumer bootstrap$(java.util.List)>(v);
specialinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void <init>(java.nio.file.Path,java.util.function.Consumer)>(v, v);
v = v;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void start()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State RUNNING>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
staticinvoke <java.lang.Thread: void sleep(long)>(1000L);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>("Touching file");
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
staticinvoke <org.apache.commons.io.FileUtils: void touch(java.io.File)>(v);
entermonitor v;
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
virtualinvoke v.<java.lang.Object: void wait(long)>(30000L);
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = <java.nio.file.StandardWatchEventKinds: java.nio.file.WatchEvent$Kind ENTRY_MODIFY>;
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.nio.file.WatchEvent$Kind kind()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
v = virtualinvoke v.<java.io.File: java.lang.String getName()>();
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.lang.Object context()>();
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
goto label;
label:
v := @caughtexception;
if v == null goto label;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testCallbackWorksOnFileAdded() throws java.io.IOException, java.lang.InterruptedException
{
java.lang.Throwable v, v;
org.apache.zookeeper.common.FileChangeWatcher$State v, v, v;
java.nio.file.WatchEvent$Kind v, v;
java.util.ArrayList v;
java.lang.String v, v;
java.nio.file.Path v;
boolean v, v;
org.apache.zookeeper.common.FileChangeWatcherTest v;
java.io.File v, v, v;
java.util.function.Consumer v;
org.apache.zookeeper.common.FileChangeWatcher v, v;
java.lang.Object v, v;
v := @this: org.apache.zookeeper.common.FileChangeWatcherTest;
v = null;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new org.apache.zookeeper.common.FileChangeWatcher;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = virtualinvoke v.<java.io.File: java.nio.file.Path toPath()>();
v = staticinvoke <org.apache.zookeeper.common.FileChangeWatcherTest$lambda_testCallbackWorksOnFileAdded_2__76: java.util.function.Consumer bootstrap$(java.util.List)>(v);
specialinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void <init>(java.nio.file.Path,java.util.function.Consumer)>(v, v);
v = v;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void start()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State RUNNING>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
staticinvoke <java.lang.Thread: void sleep(long)>(1000L);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = staticinvoke <java.io.File: java.io.File createTempFile(java.lang.String,java.lang.String,java.io.File)>("zk_test_", "", v);
virtualinvoke v.<java.io.File: void deleteOnExit()>();
entermonitor v;
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
virtualinvoke v.<java.lang.Object: void wait(long)>(30000L);
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = <java.nio.file.StandardWatchEventKinds: java.nio.file.WatchEvent$Kind ENTRY_CREATE>;
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.nio.file.WatchEvent$Kind kind()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = virtualinvoke v.<java.io.File: java.lang.String getName()>();
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.lang.Object context()>();
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
goto label;
label:
v := @caughtexception;
if v == null goto label;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testCallbackWorksOnFileDeleted() throws java.io.IOException, java.lang.InterruptedException
{
java.lang.Throwable v, v;
org.apache.zookeeper.common.FileChangeWatcher$State v, v, v;
java.nio.file.WatchEvent$Kind v, v;
java.util.ArrayList v;
java.lang.String v, v;
java.nio.file.Path v;
boolean v, v;
org.apache.zookeeper.common.FileChangeWatcherTest v;
java.io.File v, v, v;
java.util.function.Consumer v;
org.apache.zookeeper.common.FileChangeWatcher v, v;
java.lang.Object v, v;
v := @this: org.apache.zookeeper.common.FileChangeWatcherTest;
v = null;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new org.apache.zookeeper.common.FileChangeWatcher;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = virtualinvoke v.<java.io.File: java.nio.file.Path toPath()>();
v = staticinvoke <org.apache.zookeeper.common.FileChangeWatcherTest$lambda_testCallbackWorksOnFileDeleted_3__77: java.util.function.Consumer bootstrap$(java.util.List)>(v);
specialinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void <init>(java.nio.file.Path,java.util.function.Consumer)>(v, v);
v = v;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void start()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State RUNNING>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
staticinvoke <java.lang.Thread: void sleep(long)>(1000L);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
virtualinvoke v.<java.io.File: boolean delete()>();
entermonitor v;
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v == 0 goto label;
virtualinvoke v.<java.lang.Object: void wait(long)>(30000L);
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = <java.nio.file.StandardWatchEventKinds: java.nio.file.WatchEvent$Kind ENTRY_DELETE>;
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.nio.file.WatchEvent$Kind kind()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
v = virtualinvoke v.<java.io.File: java.lang.String getName()>();
v = interfaceinvoke v.<java.nio.file.WatchEvent: java.lang.Object context()>();
v = virtualinvoke v.<java.lang.Object: java.lang.String toString()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>(v, v);
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
goto label;
label:
v := @caughtexception;
if v == null goto label;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
public void testCallbackErrorDoesNotCrashWatcherThread() throws java.io.IOException, java.lang.InterruptedException
{
java.lang.Throwable v, v, v;
org.apache.zookeeper.common.FileChangeWatcher$State v, v, v;
java.nio.charset.Charset v, v;
java.util.concurrent.atomic.AtomicInteger v;
int v, v, v;
java.nio.file.Path v;
boolean v;
org.slf4j.Logger v, v;
org.apache.zookeeper.common.FileChangeWatcherTest v;
java.io.File v, v, v;
java.util.function.Consumer v;
org.apache.zookeeper.common.FileChangeWatcher v, v;
v := @this: org.apache.zookeeper.common.FileChangeWatcherTest;
v = null;
label:
v = new java.util.concurrent.atomic.AtomicInteger;
specialinvoke v.<java.util.concurrent.atomic.AtomicInteger: void <init>(int)>(0);
v = new org.apache.zookeeper.common.FileChangeWatcher;
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempDir>;
v = virtualinvoke v.<java.io.File: java.nio.file.Path toPath()>();
v = staticinvoke <org.apache.zookeeper.common.FileChangeWatcherTest$lambda_testCallbackErrorDoesNotCrashWatcherThread_4__78: java.util.function.Consumer bootstrap$(java.util.concurrent.atomic.AtomicInteger)>(v);
specialinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void <init>(java.nio.file.Path,java.util.function.Consumer)>(v, v);
v = v;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void start()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State RUNNING>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
staticinvoke <java.lang.Thread: void sleep(long)>(1000L);
v = <org.apache.zookeeper.common.FileChangeWatcherTest: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>("Modifying file");
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
staticinvoke <org.apache.commons.io.FileUtils: void writeStringToFile(java.io.File,java.lang.String,java.nio.charset.Charset,boolean)>(v, "Hello world\n", v, 1);
entermonitor v;
label:
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int get()>();
if v != 0 goto label;
virtualinvoke v.<java.lang.Object: void wait(long)>(30000L);
goto label;
label:
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
v = <org.apache.zookeeper.common.FileChangeWatcherTest: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>("Modifying file again");
v = <org.apache.zookeeper.common.FileChangeWatcherTest: java.io.File tempFile>;
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
staticinvoke <org.apache.commons.io.FileUtils: void writeStringToFile(java.io.File,java.lang.String,java.nio.charset.Charset,boolean)>(v, "Hello world again\n", v, 1);
entermonitor v;
label:
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int get()>();
if v != 1 goto label;
virtualinvoke v.<java.lang.Object: void wait(long)>(30000L);
label:
exitmonitor v;
label:
goto label;
label:
v := @caughtexception;
exitmonitor v;
throw v;
label:
v = virtualinvoke v.<java.util.concurrent.atomic.AtomicInteger: int get()>();
if v <= 1 goto label;
v = 1;
goto label;
label:
v = 0;
label:
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
label:
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
goto label;
label:
v := @caughtexception;
if v == null goto label;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void stop()>();
v = <org.apache.zookeeper.common.FileChangeWatcher$State: org.apache.zookeeper.common.FileChangeWatcher$State STOPPED>;
virtualinvoke v.<org.apache.zookeeper.common.FileChangeWatcher: void waitForState(org.apache.zookeeper.common.FileChangeWatcher$State)>(v);
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
catch java.lang.Throwable from label to label with label;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/zookeeper/common/FileChangeWatcherTest;");
<org.apache.zookeeper.common.FileChangeWatcherTest: org.slf4j.Logger LOG> = v;
return;
}
}