public class org.apache.zookeeper.common.PathTrieTest extends java.lang.Object
{
private org.apache.zookeeper.common.PathTrie pathTrie;
public void <init>()
{
org.apache.zookeeper.common.PathTrieTest v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void before()
{
org.apache.zookeeper.common.PathTrie v;
org.apache.zookeeper.common.PathTrieTest v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = new org.apache.zookeeper.common.PathTrie;
specialinvoke v.<org.apache.zookeeper.common.PathTrie: void <init>()>();
v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie> = v;
return;
}
public void addNullPath()
{
org.apache.zookeeper.common.PathTrieTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = staticinvoke <org.apache.zookeeper.common.PathTrieTest$lambda_addNullPath_0__110: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PathTrieTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/NullPointerException;", v);
return;
}
public void addIllegalPath()
{
org.apache.zookeeper.common.PathTrieTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = staticinvoke <org.apache.zookeeper.common.PathTrieTest$lambda_addIllegalPath_1__111: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PathTrieTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/IllegalArgumentException;", v);
return;
}
public void addPathToRoot()
{
org.apache.zookeeper.common.PathTrie v, v;
org.apache.zookeeper.common.PathTrieTest v;
boolean v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void addPathToRootLeaves()
{
org.apache.zookeeper.common.PathTrie v, v, v, v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
boolean v, v, v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node2");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node3");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node3");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void deleteNullPath()
{
org.apache.zookeeper.common.PathTrieTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = staticinvoke <org.apache.zookeeper.common.PathTrieTest$lambda_deleteNullPath_2__112: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PathTrieTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/NullPointerException;", v);
return;
}
public void deleteIllegalPath()
{
org.apache.zookeeper.common.PathTrieTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = staticinvoke <org.apache.zookeeper.common.PathTrieTest$lambda_deleteIllegalPath_3__113: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PathTrieTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/IllegalArgumentException;", v);
return;
}
public void deletePathFromRoot()
{
org.apache.zookeeper.common.PathTrie v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
boolean v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void deletePath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
return;
}
public void deletePathFromRootLeaves()
{
boolean v, v, v, v, v, v;
org.apache.zookeeper.common.PathTrie v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node2");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node3");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void deletePath(java.lang.String)>("node1/node3");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node3");
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void deletePath(java.lang.String)>("node1/node2");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void deletePath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertFalse(boolean)>(v);
return;
}
public void deletePathDoesNotExist()
{
org.apache.zookeeper.common.PathTrie v, v, v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
boolean v, v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node2");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void deletePath(java.lang.String)>("node1/node3");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void deleteRootPath()
{
org.apache.zookeeper.common.PathTrie v, v, v, v, v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
boolean v, v, v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node2");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node3");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void deletePath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: boolean existsNode(java.lang.String)>("/node1/node3");
staticinvoke <org.junit.jupiter.api.Assertions: void assertTrue(boolean)>(v);
return;
}
public void findMaxPrefixNullPath()
{
org.apache.zookeeper.common.PathTrieTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = staticinvoke <org.apache.zookeeper.common.PathTrieTest$lambda_findMaxPrefixNullPath_4__114: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PathTrieTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/NullPointerException;", v);
return;
}
public void findMaxPrefixRootPath()
{
org.apache.zookeeper.common.PathTrie v;
org.apache.zookeeper.common.PathTrieTest v;
java.lang.String v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: java.lang.String findMaxPrefix(java.lang.String)>("/");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("/", v);
return;
}
public void findMaxPrefixChildren()
{
org.apache.zookeeper.common.PathTrie v, v, v, v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
java.lang.String v, v, v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node2");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1/node3");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: java.lang.String findMaxPrefix(java.lang.String)>("/node1");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("/node1", v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: java.lang.String findMaxPrefix(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("/node1/node2", v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: java.lang.String findMaxPrefix(java.lang.String)>("/node1/node3");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("/node1/node3", v);
return;
}
public void findMaxPrefixChildrenPrefix()
{
org.apache.zookeeper.common.PathTrie v, v, v;
org.apache.zookeeper.common.PathTrieTest v;
java.lang.String v, v;
v := @this: org.apache.zookeeper.common.PathTrieTest;
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
virtualinvoke v.<org.apache.zookeeper.common.PathTrie: void addPath(java.lang.String)>("node1");
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: java.lang.String findMaxPrefix(java.lang.String)>("/node1/node2");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("/node1", v);
v = v.<org.apache.zookeeper.common.PathTrieTest: org.apache.zookeeper.common.PathTrie pathTrie>;
v = virtualinvoke v.<org.apache.zookeeper.common.PathTrie: java.lang.String findMaxPrefix(java.lang.String)>("/node1/node3");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("/node1", v);
return;
}
}