public class org.bouncycastle.util.test.SimpleTestResult implements org.bouncycastle.util.test.TestResult
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.util.test.SimpleTestResult
super_class: java.lang.Object
{
private static final java.lang.String SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private boolean success;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String message;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.Throwable exception;
descriptor: Ljava/lang/Throwable;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic org.bouncycastle.util.test.SimpleTestResult.SEPARATOR:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(boolean, java.lang.String);
descriptor: (ZLjava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.bouncycastle.util.test.SimpleTestResult.success:Z
2: aload 0
aload 2
putfield org.bouncycastle.util.test.SimpleTestResult.message:Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/util/test/SimpleTestResult;
0 4 1 success Z
0 4 2 message Ljava/lang/String;
MethodParameters:
Name Flags
success
message
public void <init>(boolean, java.lang.String, java.lang.Throwable);
descriptor: (ZLjava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield org.bouncycastle.util.test.SimpleTestResult.success:Z
2: aload 0
aload 2
putfield org.bouncycastle.util.test.SimpleTestResult.message:Ljava/lang/String;
3: aload 0
aload 3
putfield org.bouncycastle.util.test.SimpleTestResult.exception:Ljava/lang/Throwable;
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/util/test/SimpleTestResult;
0 5 1 success Z
0 5 2 message Ljava/lang/String;
0 5 3 exception Ljava/lang/Throwable;
MethodParameters:
Name Flags
success
message
exception
public static org.bouncycastle.util.test.TestResult successful(org.bouncycastle.util.test.Test, java.lang.String);
descriptor: (Lorg/bouncycastle/util/test/Test;Ljava/lang/String;)Lorg/bouncycastle/util/test/TestResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new org.bouncycastle.util.test.SimpleTestResult
dup
iconst_1
new java.lang.StringBuilder
dup
aload 0
invokeinterface org.bouncycastle.util.test.Test.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bouncycastle.util.test.SimpleTestResult.<init>:(ZLjava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 test Lorg/bouncycastle/util/test/Test;
0 1 1 message Ljava/lang/String;
MethodParameters:
Name Flags
test
message
public static org.bouncycastle.util.test.TestResult failed(org.bouncycastle.util.test.Test, java.lang.String);
descriptor: (Lorg/bouncycastle/util/test/Test;Ljava/lang/String;)Lorg/bouncycastle/util/test/TestResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new org.bouncycastle.util.test.SimpleTestResult
dup
iconst_0
new java.lang.StringBuilder
dup
aload 0
invokeinterface org.bouncycastle.util.test.Test.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bouncycastle.util.test.SimpleTestResult.<init>:(ZLjava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 test Lorg/bouncycastle/util/test/Test;
0 1 1 message Ljava/lang/String;
MethodParameters:
Name Flags
test
message
public static org.bouncycastle.util.test.TestResult failed(org.bouncycastle.util.test.Test, java.lang.String, java.lang.Throwable);
descriptor: (Lorg/bouncycastle/util/test/Test;Ljava/lang/String;Ljava/lang/Throwable;)Lorg/bouncycastle/util/test/TestResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.bouncycastle.util.test.SimpleTestResult
dup
iconst_0
new java.lang.StringBuilder
dup
aload 0
invokeinterface org.bouncycastle.util.test.Test.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokespecial org.bouncycastle.util.test.SimpleTestResult.<init>:(ZLjava/lang/String;Ljava/lang/Throwable;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 test Lorg/bouncycastle/util/test/Test;
0 1 1 message Ljava/lang/String;
0 1 2 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
test
message
t
public static org.bouncycastle.util.test.TestResult failed(org.bouncycastle.util.test.Test, java.lang.String, java.lang.Object, java.lang.Object);
descriptor: (Lorg/bouncycastle/util/test/Test;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/bouncycastle/util/test/TestResult;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic org.bouncycastle.util.test.SimpleTestResult.SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "Expected: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
getstatic org.bouncycastle.util.test.SimpleTestResult.SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "Found : "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.bouncycastle.util.test.SimpleTestResult.failed:(Lorg/bouncycastle/util/test/Test;Ljava/lang/String;)Lorg/bouncycastle/util/test/TestResult;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 test Lorg/bouncycastle/util/test/Test;
0 1 1 message Ljava/lang/String;
0 1 2 expected Ljava/lang/Object;
0 1 3 found Ljava/lang/Object;
MethodParameters:
Name Flags
test
message
expected
found
public static java.lang.String failedMessage(java.lang.String, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.StringBuffer
dup
aload 0
invokespecial java.lang.StringBuffer.<init>:(Ljava/lang/String;)V
astore 4
start local 4 1: aload 4
ldc " failing "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
aload 1
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
2: aload 4
getstatic org.bouncycastle.util.test.SimpleTestResult.SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
ldc " expected: "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
aload 2
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
3: aload 4
getstatic org.bouncycastle.util.test.SimpleTestResult.SEPARATOR:Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
ldc " got : "
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
aload 3
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
4: aload 4
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 algorithm Ljava/lang/String;
0 5 1 testName Ljava/lang/String;
0 5 2 expected Ljava/lang/String;
0 5 3 actual Ljava/lang/String;
1 5 4 sb Ljava/lang/StringBuffer;
MethodParameters:
Name Flags
algorithm
testName
expected
actual
public boolean isSuccessful();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.util.test.SimpleTestResult.success:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTestResult;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.util.test.SimpleTestResult.message:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTestResult;
public java.lang.Throwable getException();
descriptor: ()Ljava/lang/Throwable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.util.test.SimpleTestResult.exception:Ljava/lang/Throwable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/util/test/SimpleTestResult;
}
SourceFile: "SimpleTestResult.java"