package Ġorg . spe k framework . spe k 2 . junit Ċ Ċ import Ġorg . junit . platform . engine . Engine Execution Listener Ċ import Ġorg . junit . platform . engine . Test Execution Result Ċ import Ġorg . spe k framework . spe k 2 . runtime . execution . Execution Listener Ċ import Ġorg . spe k framework . spe k 2 . runtime . execution . Execution Result Ċ import Ġorg . spe k framework . spe k 2 . runtime . scope . Group Scope Impl Ċ import Ġorg . spe k framework . spe k 2 . runtime . scope . Scope Impl Ċ import Ġorg . spe k framework . spe k 2 . runtime . scope . Test Scope Impl Ċ Ċ class ĠJ Unit Engine Execution Listener Adapter ( ĊĠĠĠ Ġprivate Ġval Ġlistener : ĠEngine Execution Listener , ĊĠĠĠ Ġprivate Ġval Ġfactory : ĠSpe k Test Descriptor Factory Ċ ) Ġ: ĠExecution Listener Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġprivate Ġconst Ġval ĠDEFAULT _ IGNORE _ REASON Ġ= Ġ"< no Ġreason Ġprovided >" ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġexecution Start () Ġ= ĠUnit ĊĊĠĠĠ Ġoverride Ġfun Ġexecution Finish () Ġ= ĠUnit ĊĊĠĠĠ Ġoverride Ġfun Ġtest Execution Start ( test : ĠTest Scope Impl ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlistener . execution Started ( test . as JUnit Descriptor ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġtest Execution Finish ( test : ĠTest Scope Impl , Ġresult : ĠExecution Result ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlistener . execution Finished ( test . as JUnit Descriptor (), Ġresult . as JUnit Result ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġtest Ignored ( test : ĠTest Scope Impl , Ġreason : ĠString ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġlistener . execution Skipped ( test . as JUnit Descriptor (), Ġreason Ġ?: ĠDEFAULT _ IGNORE _ REASON ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġgroup Execution Start ( group : ĠGroup Scope Impl ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlistener . execution Started ( group . as JUnit Descriptor ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġgroup Execution Finish ( group : ĠGroup Scope Impl , Ġresult : ĠExecution Result ) Ġ{ ĊĠĠĠĠĠĠĠ Ġlistener . execution Finished ( group . as JUnit Descriptor (), Ġresult . as JUnit Result ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġgroup Ignored ( group : ĠGroup Scope Impl , Ġreason : ĠString ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġlistener . execution Skipped ( group . as JUnit Descriptor (), Ġreason Ġ?: ĠDEFAULT _ IGNORE _ REASON ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun ĠScope Impl . as JUnit Descriptor () Ġ= Ġfactory . create ( this ) ĊĊĠĠĠ Ġprivate Ġfun ĠExecution Result . as JUnit Result () Ġ= Ġwhen Ġ( this ) Ġ{ ĊĠĠĠĠĠĠĠ Ġis ĠExecution Result . Success Ġ-> ĠTest Execution Result . successful () ĊĠĠĠĠĠĠĠ Ġis ĠExecution Result . Failure Ġ-> ĠTest Execution Result . failed ( this . cause ) ĊĠĠĠ Ġ} Ċ } Ċ