public class org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests implements java.util.function.Predicate<java.lang.Class<?>>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests
super_class: java.lang.Object
{
private static final org.junit.jupiter.engine.discovery.predicates.IsTestMethod isTestMethod;
descriptor: Lorg/junit/jupiter/engine/discovery/predicates/IsTestMethod;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethod isTestFactoryMethod;
descriptor: Lorg/junit/jupiter/engine/discovery/predicates/IsTestFactoryMethod;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod isTestTemplateMethod;
descriptor: Lorg/junit/jupiter/engine/discovery/predicates/IsTestTemplateMethod;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.util.function.Predicate<java.lang.reflect.Method> isTestOrTestFactoryOrTestTemplateMethod;
descriptor: Ljava/util/function/Predicate;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Predicate<Ljava/lang/reflect/Method;>;
private static final org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer isPotentialTestContainer;
descriptor: Lorg/junit/jupiter/engine/discovery/predicates/IsPotentialTestContainer;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.junit.jupiter.engine.discovery.predicates.IsNestedTestClass isNestedTestClass;
descriptor: Lorg/junit/jupiter/engine/discovery/predicates/IsNestedTestClass;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.junit.jupiter.engine.discovery.predicates.IsTestMethod
dup
invokespecial org.junit.jupiter.engine.discovery.predicates.IsTestMethod.<init>:()V
putstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestMethod:Lorg/junit/jupiter/engine/discovery/predicates/IsTestMethod;
1: new org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethod
dup
invokespecial org.junit.jupiter.engine.discovery.predicates.IsTestFactoryMethod.<init>:()V
putstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestFactoryMethod:Lorg/junit/jupiter/engine/discovery/predicates/IsTestFactoryMethod;
2: new org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod
dup
invokespecial org.junit.jupiter.engine.discovery.predicates.IsTestTemplateMethod.<init>:()V
putstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestTemplateMethod:Lorg/junit/jupiter/engine/discovery/predicates/IsTestTemplateMethod;
3: getstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestMethod:Lorg/junit/jupiter/engine/discovery/predicates/IsTestMethod;
4: getstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestFactoryMethod:Lorg/junit/jupiter/engine/discovery/predicates/IsTestFactoryMethod;
5: invokevirtual org.junit.jupiter.engine.discovery.predicates.IsTestMethod.or:(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
6: getstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestTemplateMethod:Lorg/junit/jupiter/engine/discovery/predicates/IsTestTemplateMethod;
invokeinterface java.util.function.Predicate.or:(Ljava/util/function/Predicate;)Ljava/util/function/Predicate;
7: putstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestOrTestFactoryOrTestTemplateMethod:Ljava/util/function/Predicate;
8: new org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer
dup
invokespecial org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer.<init>:()V
putstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isPotentialTestContainer:Lorg/junit/jupiter/engine/discovery/predicates/IsPotentialTestContainer;
9: new org.junit.jupiter.engine.discovery.predicates.IsNestedTestClass
dup
invokespecial org.junit.jupiter.engine.discovery.predicates.IsNestedTestClass.<init>:()V
putstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isNestedTestClass:Lorg/junit/jupiter/engine/discovery/predicates/IsNestedTestClass;
return
LocalVariableTable:
Start End Slot Name Signature
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/junit/jupiter/engine/discovery/predicates/IsTestClassWithTests;
public boolean test(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isPotentialTestContainer:Lorg/junit/jupiter/engine/discovery/predicates/IsPotentialTestContainer;
aload 1
invokevirtual org.junit.jupiter.engine.discovery.predicates.IsPotentialTestContainer.test:(Ljava/lang/Class;)Z
ifeq 3
1: aload 0
aload 1
invokevirtual org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.hasTestOrTestFactoryOrTestTemplateMethods:(Ljava/lang/Class;)Z
ifne 2
aload 0
aload 1
invokevirtual org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.hasNestedTests:(Ljava/lang/Class;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/junit/jupiter/engine/discovery/predicates/IsTestClassWithTests;
0 4 1 candidate Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
candidate
private boolean hasTestOrTestFactoryOrTestTemplateMethods(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isTestOrTestFactoryOrTestTemplateMethod:Ljava/util/function/Predicate;
invokestatic org.junit.platform.commons.util.ReflectionUtils.isMethodPresent:(Ljava/lang/Class;Ljava/util/function/Predicate;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/junit/jupiter/engine/discovery/predicates/IsTestClassWithTests;
0 1 1 candidate Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
candidate
private boolean hasNestedTests(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getstatic org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.isNestedTestClass:Lorg/junit/jupiter/engine/discovery/predicates/IsNestedTestClass;
invokestatic org.junit.platform.commons.util.ReflectionUtils.findNestedClasses:(Ljava/lang/Class;Ljava/util/function/Predicate;)Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/junit/jupiter/engine/discovery/predicates/IsTestClassWithTests;
0 3 1 candidate Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Z
MethodParameters:
Name Flags
candidate
public boolean test(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.Class
invokevirtual org.junit.jupiter.engine.discovery.predicates.IsTestClassWithTests.test:(Ljava/lang/Class;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/function/Predicate<Ljava/lang/Class<*>;>;
SourceFile: "IsTestClassWithTests.java"
InnerClasses:
public final Status = org.apiguardian.api.API$Status of org.apiguardian.api.API
RuntimeVisibleAnnotations:
org.apiguardian.api.API(status = org.apiguardian.api.API$Status.INTERNAL:Lorg/apiguardian/api/API$Status;, since = "5.1")