public class org.apache.zookeeper.common.PathUtilsTest extends org.apache.zookeeper.ZKTestCase
{
public void <init>()
{
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
specialinvoke v.<org.apache.zookeeper.ZKTestCase: void <init>()>();
return;
}
public void testValidatePath_ValidPath()
{
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
staticinvoke <org.apache.zookeeper.common.PathUtils: void validatePath(java.lang.String)>("/this is / a valid/path");
return;
}
public void testValidatePath_Null()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_Null_0__115: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_EmptyString()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_EmptyString_1__116: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_NotAbsolutePath()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_NotAbsolutePath_2__117: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_EndsWithSlash()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_EndsWithSlash_3__118: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_ContainsNullCharacter()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_ContainsNullCharacter_4__119: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_DoubleSlash()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_DoubleSlash_5__120: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_SinglePeriod()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_SinglePeriod_6__121: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_DoublePeriod()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_DoublePeriod_7__122: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_NameContainingPeriod()
{
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
staticinvoke <org.apache.zookeeper.common.PathUtils: void validatePath(java.lang.String)>("/name/with.period.");
return;
}
public void testValidatePath_0x01()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_0x01_8__123: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_0x1F()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_0x1F_9__124: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_0x20()
{
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
staticinvoke <org.apache.zookeeper.common.PathUtils: void validatePath(java.lang.String)>("/test ");
return;
}
public void testValidatePath_0x7e()
{
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
staticinvoke <org.apache.zookeeper.common.PathUtils: void validatePath(java.lang.String)>("/test~");
return;
}
public void testValidatePath_0x7f()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_0x7f_10__125: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_0x9f()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_0x9f_11__126: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_ud800()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_ud800_12__127: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_uf8ff()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_uf8ff_13__128: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testValidatePath_HighestAllowableChar()
{
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
staticinvoke <org.apache.zookeeper.common.PathUtils: void validatePath(java.lang.String)>("/test\uffef");
return;
}
public void testValidatePath_SupplementaryChar()
{
org.apache.zookeeper.common.PathUtilsTest v;
org.junit.jupiter.api.function.Executable v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtilsTest$lambda_testValidatePath_SupplementaryChar_14__129: org.junit.jupiter.api.function.Executable bootstrap$()>();
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 testGetTopNamespace()
{
java.lang.String v, v, v, v;
org.apache.zookeeper.common.PathUtilsTest v;
v := @this: org.apache.zookeeper.common.PathUtilsTest;
v = staticinvoke <org.apache.zookeeper.common.PathUtils: java.lang.String getTopNamespace(java.lang.String)>("/n0/n1/n2/n3");
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(java.lang.Object,java.lang.Object)>("n0", v);
v = staticinvoke <org.apache.zookeeper.common.PathUtils: java.lang.String getTopNamespace(java.lang.String)>("/");
staticinvoke <org.junit.jupiter.api.Assertions: void assertNull(java.lang.Object)>(v);
v = staticinvoke <org.apache.zookeeper.common.PathUtils: java.lang.String getTopNamespace(java.lang.String)>("");
staticinvoke <org.junit.jupiter.api.Assertions: void assertNull(java.lang.Object)>(v);
v = staticinvoke <org.apache.zookeeper.common.PathUtils: java.lang.String getTopNamespace(java.lang.String)>(null);
staticinvoke <org.junit.jupiter.api.Assertions: void assertNull(java.lang.Object)>(v);
return;
}
}