public abstract class org.bouncycastle.util.test.SimpleTest implements org.bouncycastle.util.test.Test
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bouncycastle.util.test.SimpleTest
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTest;
public abstract java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
private org.bouncycastle.util.test.TestResult success();
descriptor: ()Lorg/bouncycastle/util/test/TestResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Okay"
invokestatic org.bouncycastle.util.test.SimpleTestResult.successful:(Lorg/bouncycastle/util/test/Test;Ljava/lang/String;)Lorg/bouncycastle/util/test/TestResult;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTest;
protected void fail(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.bouncycastle.util.test.TestFailedException
dup
aload 0
aload 1
invokestatic org.bouncycastle.util.test.SimpleTestResult.failed:(Lorg/bouncycastle/util/test/Test;Ljava/lang/String;)Lorg/bouncycastle/util/test/TestResult;
invokespecial org.bouncycastle.util.test.TestFailedException.<init>:(Lorg/bouncycastle/util/test/TestResult;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTest;
0 1 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message
protected void fail(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.bouncycastle.util.test.TestFailedException
dup
aload 0
aload 1
aload 2
invokestatic org.bouncycastle.util.test.SimpleTestResult.failed:(Lorg/bouncycastle/util/test/Test;Ljava/lang/String;Ljava/lang/Throwable;)Lorg/bouncycastle/util/test/TestResult;
invokespecial org.bouncycastle.util.test.TestFailedException.<init>:(Lorg/bouncycastle/util/test/TestResult;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTest;
0 1 1 message Ljava/lang/String;
0 1 2 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
message
throwable
protected void fail(java.lang.String, java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.bouncycastle.util.test.TestFailedException
dup
aload 0
aload 1
aload 2
aload 3
invokestatic org.bouncycastle.util.test.SimpleTestResult.failed:(Lorg/bouncycastle/util/test/Test;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/bouncycastle/util/test/TestResult;
invokespecial org.bouncycastle.util.test.TestFailedException.<init>:(Lorg/bouncycastle/util/test/TestResult;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTest;
0 1 1 message Ljava/lang/String;
0 1 2 expected Ljava/lang/Object;
0 1 3 found Ljava/lang/Object;
MethodParameters:
Name Flags
message
expected
found
protected boolean areEqual(byte[], byte[]);
descriptor: ([B[B)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.bouncycastle.util.Arrays.areEqual:([B[B)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTest;
0 1 1 a [B
0 1 2 b [B
MethodParameters:
Name Flags
a
b
public org.bouncycastle.util.test.TestResult perform();
descriptor: ()Lorg/bouncycastle/util/test/TestResult;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.bouncycastle.util.test.SimpleTest.performTest:()V
1: aload 0
invokevirtual org.bouncycastle.util.test.SimpleTest.success:()Lorg/bouncycastle/util/test/TestResult;
2: areturn
3: StackMap locals:
StackMap stack: org.bouncycastle.util.test.TestFailedException
astore 1
start local 1 4: aload 1
invokevirtual org.bouncycastle.util.test.TestFailedException.getResult:()Lorg/bouncycastle/util/test/TestResult;
areturn
end local 1 5: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 6: aload 0
new java.lang.StringBuilder
dup
ldc "Exception: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokestatic org.bouncycastle.util.test.SimpleTestResult.failed:(Lorg/bouncycastle/util/test/Test;Ljava/lang/String;Ljava/lang/Throwable;)Lorg/bouncycastle/util/test/TestResult;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/util/test/SimpleTest;
4 5 1 e Lorg/bouncycastle/util/test/TestFailedException;
6 7 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class org.bouncycastle.util.test.TestFailedException
0 2 5 Class java.lang.Exception
protected static void runTest(org.bouncycastle.util.test.Test);
descriptor: (Lorg/bouncycastle/util/test/Test;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokestatic org.bouncycastle.util.test.SimpleTest.runTest:(Lorg/bouncycastle/util/test/Test;Ljava/io/PrintStream;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 test Lorg/bouncycastle/util/test/Test;
MethodParameters:
Name Flags
test
protected static void runTest(org.bouncycastle.util.test.Test, java.io.PrintStream);
descriptor: (Lorg/bouncycastle/util/test/Test;Ljava/io/PrintStream;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokeinterface org.bouncycastle.util.test.Test.perform:()Lorg/bouncycastle/util/test/TestResult;
astore 2
start local 2 1: aload 1
aload 2
invokeinterface org.bouncycastle.util.test.TestResult.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: aload 2
invokeinterface org.bouncycastle.util.test.TestResult.getException:()Ljava/lang/Throwable;
ifnull 4
3: aload 2
invokeinterface org.bouncycastle.util.test.TestResult.getException:()Ljava/lang/Throwable;
aload 1
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintStream;)V
4: StackMap locals: org.bouncycastle.util.test.TestResult
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 test Lorg/bouncycastle/util/test/Test;
0 5 1 out Ljava/io/PrintStream;
1 5 2 result Lorg/bouncycastle/util/test/TestResult;
MethodParameters:
Name Flags
test
out
public abstract void performTest();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.lang.Exception
}
SourceFile: "SimpleTest.java"