io.qameta.allure.junitplatform.AllureJunitPlatform.class Maven / Gradle / Ivy
???? 4
???
? .??
? .??
? .? .?
??
??
??
??
.? ???
?
?
.?
???
??
????
??
? ?????
?? ? ?? ? ??
.?
?? ?
c?
c?
.?
??
??????????
.???? ??
3?
????
?? ???
.?
??? ?
c? ?
c? ? ??
I?
I?
??
I?
.
I
.
I
I ?
I
c
? ?
I ?
? ?
?
? ? ? ! ? ?$%
&' ?(
I) ? ? ? ? ? ?
?4
?5
.6 9
?:
?;
?<
=>
=?@ABC?DBE@F?G?H ?I
?J
KL
cM
c?N
.O ?P
?Q ? ?
&UV
?W
.X
?Y
Z[\
?]
?^_
.` ? ?cd ?g ?j !?mn "?q #?t $? %z ?{ &
c?? '?? (?? )???
.? ?? ?? ?? ???
??
?? ??s?
???
???
????
??
??
B?
??
c?? .????
c?
?? *??
B?
B? ?
I?
I?
??
??
??
.?
??
???
B?
3?
I?
??
??
??
.?
???? InnerClasses LOGGER Lorg/slf4j/Logger; STDOUT Ljava/lang/String;
ConstantValue STDERR
TEXT_PLAIN
TXT_EXTENSION testPlanStorage Ljava/lang/ThreadLocal; Signature ?Ljava/lang/ThreadLocal; testUuids Ljava/util/Map; OLjava/util/Map; lock *Ljava/util/concurrent/locks/ReadWriteLock; lifecycle "Lio/qameta/allure/AllureLifecycle; %(Lio/qameta/allure/AllureLifecycle;)V Code LineNumberTable LocalVariableTable this 4Lio/qameta/allure/junitplatform/AllureJunitPlatform; ()V getLifecycle $()Lio/qameta/allure/AllureLifecycle; testPlanExecutionStarted )(Lorg/junit/platform/launcher/TestPlan;)V testPlan &Lorg/junit/platform/launcher/TestPlan; testPlanExecutionFinished executionStarted /(Lorg/junit/platform/launcher/TestIdentifier;)V testIdentifier ,Lorg/junit/platform/launcher/TestIdentifier;
StackMapTable executionSkipped A(Lorg/junit/platform/launcher/TestIdentifier;Ljava/lang/String;)V children Ljava/util/Set; visited reason LocalVariableTypeTable =Ljava/util/Set;?? v(Lorg/junit/platform/launcher/TestPlan;Lorg/junit/platform/launcher/TestIdentifier;Ljava/lang/String;Ljava/util/Set;)V ?(Lorg/junit/platform/launcher/TestPlan;Lorg/junit/platform/launcher/TestIdentifier;Ljava/lang/String;Ljava/util/Set;)V executionFinished ^(Lorg/junit/platform/launcher/TestIdentifier;Lorg/junit/platform/engine/TestExecutionResult;)V status Lio/qameta/allure/model/Status;
statusDetails &Lio/qameta/allure/model/StatusDetails; testExecutionResult /Lorg/junit/platform/engine/TestExecutionResult; reportingEntryPublished `(Lorg/junit/platform/launcher/TestIdentifier;Lorg/junit/platform/engine/reporting/ReportEntry;)V content entry 1Lorg/junit/platform/engine/reporting/ReportEntry; uuid
keyValuePairs 5Ljava/util/Map;?? getStatus 6(Ljava/lang/Throwable;)Lio/qameta/allure/model/Status; throwable Ljava/lang/Throwable;
startTestCase methodSource Ljava/util/Optional;
testMethod testClass result #Lio/qameta/allure/model/TestResult; classDescription methodDescription description QLjava/util/Optional; 0Ljava/util/Optional; *Ljava/util/Optional;>; (Ljava/util/Optional; stopTestCase t(Lorg/junit/platform/launcher/TestIdentifier;Lio/qameta/allure/model/Status;Lio/qameta/allure/model/StatusDetails;)V
createUuid @(Lorg/junit/platform/launcher/TestIdentifier;)Ljava/lang/String;??N getUuid
removeUuid
extractStatus P(Lorg/junit/platform/engine/TestExecutionResult;)Lio/qameta/allure/model/Status;? getTags >(Lorg/junit/platform/launcher/TestIdentifier;)Ljava/util/List; ^(Lorg/junit/platform/launcher/TestIdentifier;)Ljava/util/List; getHistoryId md5 &(Ljava/lang/String;)Ljava/lang/String; source bytes [B getSeverity :(Ljava/lang/reflect/AnnotatedElement;)Ljava/util/Optional; annotatedElement $Ljava/lang/reflect/AnnotatedElement; \(Ljava/lang/reflect/AnnotatedElement;)Ljava/util/Optional; getOwner N(Ljava/lang/reflect/AnnotatedElement;)Ljava/util/Optional; getDisplayName getDescription getLabels 6(Ljava/lang/reflect/AnnotatedElement;)Ljava/util/List; V(Ljava/lang/reflect/AnnotatedElement;)Ljava/util/List; getLinks U(Ljava/lang/reflect/AnnotatedElement;)Ljava/util/List; getAnnotations P(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/stream/Stream; annotationClass Ljava/lang/Class;
annotation !Ljava/lang/annotation/Annotation; Ljava/lang/Class; TT;???m ?(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/stream/Stream; extractRepeatable G(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/List; value Ljava/lang/reflect/Method; annotations Ljava/lang/Object; e Ljava/lang/Exception;
repeatable !Ljava/lang/annotation/Repeatable; wrapper 5Ljava/lang/Class<+Ljava/lang/annotation/Annotation;>;?? w(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)Ljava/util/List; getTestClass Q(Lorg/junit/platform/engine/support/descriptor/MethodSource;)Ljava/util/Optional; "Ljava/lang/ClassNotFoundException; ;Lorg/junit/platform/engine/support/descriptor/MethodSource;? g(Lorg/junit/platform/engine/support/descriptor/MethodSource;)Ljava/util/Optional;>;
getTestMethod aClass Ljava/lang/Class<*>; m(Lorg/junit/platform/engine/support/descriptor/MethodSource;)Ljava/util/Optional; lambda$getTestMethod$6 X(Lorg/junit/platform/engine/support/descriptor/MethodSource;Ljava/lang/reflect/Method;)Z method lambda$stopTestCase$5 k(Lio/qameta/allure/model/Status;Lio/qameta/allure/model/StatusDetails;Lio/qameta/allure/model/TestResult;)V lambda$startTestCase$4 @(Lio/qameta/allure/model/TestResult;Ljava/lang/reflect/Method;)V lambda$startTestCase$3 7(Lio/qameta/allure/model/TestResult;Ljava/lang/Class;)V suiteName lambda$startTestCase$2 a(Lio/qameta/allure/model/TestResult;Lorg/junit/platform/engine/support/descriptor/MethodSource;)V lambda$executionSkipped$1 v(Lorg/junit/platform/launcher/TestPlan;Ljava/lang/String;Ljava/util/Set;Lorg/junit/platform/launcher/TestIdentifier;)V child lambda$executionSkipped$0
SourceFile AllureJunitPlatform.java ? java/lang/InheritableThreadLocal ? ? &java/util/concurrent/ConcurrentHashMap ? ? 1java/util/concurrent/locks/ReentrantReadWriteLock ? ? ? ?????????3
? $io/qameta/allure/model/StatusDetails??AB?? $org/junit/platform/launcher/TestPlan???????? java/util/HashSet??? ?? BootstrapMethods???
????????? ???????JK????????????HD????? 2io/qameta/allure/junitplatform/AllureJunitPlatform stdout??? java/lang/String Stdout
text/plain .txt stderr Stderr
/? io/qameta/allure/model/StatusCD? 9org/junit/platform/engine/support/descriptor/MethodSource
?????? !io/qameta/allure/model/TestResult]MNPD !"#$%_& '(?)*?+,b&-./?0.12?345?6789 java/util/Optional:; ?<?= ?>?
@ABCDEFGH ]IJKLMNOP3QIDRP?STUAQVQWXYZ[\]^ ?_`a]????bc/efghi? java/lang/Throwable/0j Mklmnop java/util/ListqQRrstuv java/math/BigInteger ?wZx io/qameta/allure/Severityde yz{? io/qameta/allure/Owner |} !org/junit/jupiter/api/DisplayName ~ io/qameta/allure/Description ?? java/util/stream/Stream io/qameta/allure/Epic?? io/qameta/allure/Feature?? io/qameta/allure/Story?? ??????? ?????? io/qameta/allure/Link?? io/qameta/allure/Issue?? io/qameta/allure/TmsLink?????qr??:??? java/lang/annotation/Repeatable??s? java/lang/Class?? java/lang/Object??? "[Ljava/lang/annotation/Annotation;??? java/lang/Exception java/lang/IllegalStateException ???&???:? java/lang/ClassNotFoundException ? ? .Could not get test class from method source {}??????????? /Could not get test method from method source {}?????!??????????]W??L %s.%s?????L?L?L??? 1org/junit/platform/launcher/TestExecutionListener 4io/qameta/allure/junitplatform/AllureJunitPlatform$1
java/util/Set
java/util/Map *org/junit/platform/launcher/TestIdentifier "java/lang/reflect/AnnotatedElement java/lang/annotation/Annotation io/qameta/allure/Allure java/lang/ThreadLocal set (Ljava/lang/Object;)V remove isTest ()Z SKIPPED
setMessage :(Ljava/lang/String;)Lio/qameta/allure/model/StatusDetails; get ()Ljava/lang/Object; java/util/Objects nonNull (Ljava/lang/Object;)Z getChildren =(Lorg/junit/platform/launcher/TestIdentifier;)Ljava/util/Set; isEmpty java/util/Collections singleton #(Ljava/lang/Object;)Ljava/util/Set; (Ljava/util/Collection;)V
??
.? accept ?(Lio/qameta/allure/junitplatform/AllureJunitPlatform;Lorg/junit/platform/launcher/TestPlan;Ljava/lang/String;Ljava/util/Set;)Ljava/util/function/Consumer; forEach (Ljava/util/function/Consumer;)V stream ()Ljava/util/stream/Stream; getClass ()Ljava/lang/Class;? /(Lorg/junit/platform/launcher/TestIdentifier;)Z test /(Ljava/util/Set;)Ljava/util/function/Predicate; filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
.? -org/junit/platform/engine/TestExecutionResult getThrowable ()Ljava/util/Optional; &(Ljava/lang/Object;)Ljava/lang/Object;
?? +(Ljava/lang/Throwable;)Ljava/util/Optional; apply ()Ljava/util/function/Function; flatMap 3(Ljava/util/function/Function;)Ljava/util/Optional; orElse isNull /org/junit/platform/engine/reporting/ReportEntry getKeyValuePairs ()Ljava/util/Map; containsKey getOrDefault 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; !java/nio/charset/StandardCharsets UTF_8 Ljava/nio/charset/Charset; getBytes (Ljava/nio/charset/Charset;)[B io/qameta/allure/AllureLifecycle
addAttachment ;(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[B)V "io/qameta/allure/util/ResultsUtils FAILED getSource
?? )(Lorg/junit/platform/engine/TestSource;)Z 1(Ljava/lang/Class;)Ljava/util/function/Predicate; 4(Ljava/util/function/Predicate;)Ljava/util/Optional;
?? c(Lorg/junit/platform/engine/TestSource;)Lorg/junit/platform/engine/support/descriptor/MethodSource; 0(Ljava/lang/Class;)Ljava/util/function/Function; map
.? S(Lio/qameta/allure/junitplatform/AllureJunitPlatform;)Ljava/util/function/Function;
.? setUuid 7(Ljava/lang/String;)Lio/qameta/allure/model/TestResult; ()Ljava/lang/String; setName setLabels 5(Ljava/util/List;)Lio/qameta/allure/model/TestResult; setHistoryId io/qameta/allure/model/Stage RUNNING Lio/qameta/allure/model/Stage; setStage C(Lio/qameta/allure/model/Stage;)Lio/qameta/allure/model/TestResult;
.? #(Ljava/lang/Class;)Ljava/util/List; ()Ljava/util/List; ?? (Ljava/util/List;)V /(Ljava/util/List;)Ljava/util/function/Consumer; ifPresent ,(Ljava/lang/reflect/Method;)Ljava/util/List;
.? createHostLabel ()Lio/qameta/allure/model/Label; add createThreadLabel
.? >(Lorg/junit/platform/engine/support/descriptor/MethodSource;)V B(Lio/qameta/allure/model/TestResult;)Ljava/util/function/Consumer;
.? (Ljava/lang/Class;)V v(Lio/qameta/allure/junitplatform/AllureJunitPlatform;Lio/qameta/allure/model/TestResult;)Ljava/util/function/Consumer;
.? '(Ljava/lang/Class;)Ljava/util/Optional; 0(Ljava/lang/reflect/Method;)Ljava/util/Optional; of .([Ljava/lang/Object;)Ljava/util/stream/Stream; (Ljava/util/Optional;)Z ()Ljava/util/function/Predicate; ((Ljava/util/Optional;)Ljava/lang/String; 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; java/util/stream/Collectors joining 6(Ljava/lang/CharSequence;)Ljava/util/stream/Collector; collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; setDescription
.?
?? @(Lio/qameta/allure/SeverityLevel;)Lio/qameta/allure/model/Label; !(Lio/qameta/allure/model/Label;)V
.?
?? 2(Ljava/lang/String;)Lio/qameta/allure/model/Label;
.? (Ljava/lang/reflect/Method;)V scheduleTestCase &(Lio/qameta/allure/model/TestResult;)V (Ljava/lang/String;)V
.? d(Lio/qameta/allure/model/Status;Lio/qameta/allure/model/StatusDetails;)Ljava/util/function/Consumer; updateTestCase 2(Ljava/lang/String;Ljava/util/function/Consumer;)V
writeTestCase java/util/UUID
randomUUID ()Ljava/util/UUID; toString (java/util/concurrent/locks/ReadWriteLock writeLock #()Ljava/util/concurrent/locks/Lock; java/util/concurrent/locks/Lock put unlock readLock ?$SwitchMap$org$junit$platform$engine$TestExecutionResult$Status [I Status 8()Lorg/junit/platform/engine/TestExecutionResult$Status; 4org/junit/platform/engine/TestExecutionResult$Status ordinal ()I isPresent PASSED ()Ljava/util/Set;
?? 7(Lorg/junit/platform/engine/TestTag;)Ljava/lang/String;
?? toList ()Ljava/util/stream/Collector; getUniqueId getMd5Digest ()Ljava/security/MessageDigest; java/security/MessageDigest digest ([B)[B (I[B)V (I)Ljava/lang/String; ?? =(Lio/qameta/allure/Severity;)Lio/qameta/allure/SeverityLevel; findAny ?? ,(Lio/qameta/allure/Owner;)Ljava/lang/String; ?? 7(Lorg/junit/jupiter/api/DisplayName;)Ljava/lang/String; ?? 2(Lio/qameta/allure/Description;)Ljava/lang/String;
?? 7(Lio/qameta/allure/Epic;)Lio/qameta/allure/model/Label;
?? :(Lio/qameta/allure/Feature;)Lio/qameta/allure/model/Label;
?? 8(Lio/qameta/allure/Story;)Lio/qameta/allure/model/Label; M(Ljava/util/stream/Stream;Ljava/util/stream/Stream;)Ljava/util/stream/Stream; %()Ljava/util/function/BinaryOperator; reduce 9(Ljava/util/function/BinaryOperator;)Ljava/util/Optional; ()Ljava/util/function/Supplier; orElseGet 1(Ljava/util/function/Supplier;)Ljava/lang/Object;
?? 6(Lio/qameta/allure/Link;)Lio/qameta/allure/model/Link;
?? 7(Lio/qameta/allure/Issue;)Lio/qameta/allure/model/Link;
?? 9(Lio/qameta/allure/TmsLink;)Lio/qameta/allure/model/Link;
getAnnotation 4(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; empty -(Ljava/lang/Object;)Ljava/util/stream/Stream; concat isAnnotationPresent (Ljava/lang/Class;)Z getMethod @(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; java/lang/reflect/Method invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; (Ljava/lang/Throwable;)V emptyList getClassName forName %(Ljava/lang/String;)Ljava/lang/Class; ((Ljava/lang/Object;)Ljava/util/Optional; org/slf4j/Logger trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V getDeclaredMethods ()[Ljava/lang/reflect/Method;
.? (Ljava/lang/reflect/Method;)Z [(Lorg/junit/platform/engine/support/descriptor/MethodSource;)Ljava/util/function/Predicate; from W(Ljava/lang/reflect/Method;)Lorg/junit/platform/engine/support/descriptor/MethodSource; equals FINISHED setStatus D(Lio/qameta/allure/model/Status;)Lio/qameta/allure/model/TestResult; setStatusDetails K(Lio/qameta/allure/model/StatusDetails;)Lio/qameta/allure/model/TestResult; getDeclaringClass getClassLoader ()Ljava/lang/ClassLoader; processDescription [(Ljava/lang/ClassLoader;Ljava/lang/reflect/Method;Lio/qameta/allure/model/ExecutableItem;)V getCanonicalName createSuiteLabel
getMethodName format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; setFullName createPackageLabel createTestClassLabel createTestMethodLabel org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger;?????????????????_`??b`????^WVW?H[W?L???????Ls?s?????????????? "java/lang/invoke/LambdaMetafactory metafactory? Lookup ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; getStatusDetails
isInstance cast addAll (Ljava/util/Collection;)Z createSeverityLabel createOwnerLabel !org/junit/platform/engine/TestTag getName createTagLabel "()Lio/qameta/allure/SeverityLevel; createLabel
createLink %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! . ? ? ? ? ? ? ? / ? ? ? ; ? ? ? 6 ? ? ? 7 ? ? ? ? ? ? ? ? ? ? ? ? &