public class org.apache.zookeeper.common.PKCS12FileLoaderTest extends org.apache.zookeeper.common.BaseX509ParameterizedTestCase
{
public void <init>()
{
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
specialinvoke v.<org.apache.zookeeper.common.BaseX509ParameterizedTestCase: void <init>()>();
return;
}
public void testLoadKeyStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
java.lang.Integer v;
int v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v, v, v;
org.apache.zookeeper.common.FileKeyStoreLoader$Builder v, v;
org.apache.zookeeper.common.FileKeyStoreLoader v;
org.apache.zookeeper.common.KeyStoreFileType v;
java.security.KeyStore v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.PKCS12FileLoader$Builder v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getKeyStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = new org.apache.zookeeper.common.PKCS12FileLoader$Builder;
specialinvoke v.<org.apache.zookeeper.common.PKCS12FileLoader$Builder: void <init>()>();
v = virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoader$Builder: org.apache.zookeeper.common.FileKeyStoreLoader$Builder setKeyStorePath(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getKeyStorePassword()>();
v = virtualinvoke v.<org.apache.zookeeper.common.FileKeyStoreLoader$Builder: org.apache.zookeeper.common.FileKeyStoreLoader$Builder setKeyStorePassword(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.zookeeper.common.FileKeyStoreLoader$Builder: org.apache.zookeeper.common.FileKeyStoreLoader build()>();
v = virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoader: java.security.KeyStore loadKeyStore()>();
v = virtualinvoke v.<java.security.KeyStore: int size()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(1, v);
return;
}
public void testLoadKeyStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadKeyStoreWithWrongPassword_0__102: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/Exception;", v);
return;
}
public void testLoadKeyStoreWithWrongFilePath(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadKeyStoreWithWrongFilePath_1__103: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/io/IOException;", v);
return;
}
public void testLoadKeyStoreWithNullFilePath(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadKeyStoreWithNullFilePath_2__104: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(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 testLoadKeyStoreWithWrongFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadKeyStoreWithWrongFileType_3__105: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/io/IOException;", v);
return;
}
public void testLoadTrustStore(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509TestContext v, v;
java.lang.Integer v;
int v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v, v, v;
org.apache.zookeeper.common.FileKeyStoreLoader$Builder v, v;
org.apache.zookeeper.common.FileKeyStoreLoader v;
org.apache.zookeeper.common.KeyStoreFileType v;
java.security.KeyStore v;
java.io.File v;
org.apache.zookeeper.common.X509KeyType v, v;
org.apache.zookeeper.common.PKCS12FileLoader$Builder v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = <org.apache.zookeeper.common.KeyStoreFileType: org.apache.zookeeper.common.KeyStoreFileType PKCS12>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.io.File getTrustStoreFile(org.apache.zookeeper.common.KeyStoreFileType)>(v);
v = virtualinvoke v.<java.io.File: java.lang.String getAbsolutePath()>();
v = new org.apache.zookeeper.common.PKCS12FileLoader$Builder;
specialinvoke v.<org.apache.zookeeper.common.PKCS12FileLoader$Builder: void <init>()>();
v = virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoader$Builder: org.apache.zookeeper.common.FileKeyStoreLoader$Builder setTrustStorePath(java.lang.String)>(v);
v = v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: org.apache.zookeeper.common.X509TestContext x509TestContext>;
v = virtualinvoke v.<org.apache.zookeeper.common.X509TestContext: java.lang.String getTrustStorePassword()>();
v = virtualinvoke v.<org.apache.zookeeper.common.FileKeyStoreLoader$Builder: org.apache.zookeeper.common.FileKeyStoreLoader$Builder setTrustStorePassword(java.lang.String)>(v);
v = virtualinvoke v.<org.apache.zookeeper.common.FileKeyStoreLoader$Builder: org.apache.zookeeper.common.FileKeyStoreLoader build()>();
v = virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoader: java.security.KeyStore loadTrustStore()>();
v = virtualinvoke v.<java.security.KeyStore: int size()>();
staticinvoke <org.junit.jupiter.api.Assertions: void assertEquals(int,int)>(1, v);
return;
}
public void testLoadTrustStoreWithWrongPassword(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadTrustStoreWithWrongPassword_4__106: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/lang/Exception;", v);
return;
}
public void testLoadTrustStoreWithWrongFilePath(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadTrustStoreWithWrongFilePath_5__107: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/io/IOException;", v);
return;
}
public void testLoadTrustStoreWithNullFilePath(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadTrustStoreWithNullFilePath_6__108: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(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 testLoadTrustStoreWithWrongFileType(org.apache.zookeeper.common.X509KeyType, org.apache.zookeeper.common.X509KeyType, java.lang.String, java.lang.Integer) throws java.lang.Exception
{
org.apache.zookeeper.common.X509KeyType v, v;
org.junit.jupiter.api.function.Executable v;
org.apache.zookeeper.common.PKCS12FileLoaderTest v;
java.lang.String v;
java.lang.Integer v;
v := @this: org.apache.zookeeper.common.PKCS12FileLoaderTest;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: org.apache.zookeeper.common.X509KeyType;
v := @parameter: java.lang.String;
v := @parameter: java.lang.Integer;
virtualinvoke v.<org.apache.zookeeper.common.PKCS12FileLoaderTest: void init(org.apache.zookeeper.common.X509KeyType,org.apache.zookeeper.common.X509KeyType,java.lang.String,java.lang.Integer)>(v, v, v, v);
v = staticinvoke <org.apache.zookeeper.common.PKCS12FileLoaderTest$lambda_testLoadTrustStoreWithWrongFileType_7__109: org.junit.jupiter.api.function.Executable bootstrap$(org.apache.zookeeper.common.PKCS12FileLoaderTest)>(v);
staticinvoke <org.junit.jupiter.api.Assertions: java.lang.Throwable assertThrows(java.lang.Class,org.junit.jupiter.api.function.Executable)>(class "Ljava/io/IOException;", v);
return;
}
}