/* Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 1 8 ĠDaniel ĠA har on Ċ Ġ*/ Ċ Ċ package Ġus . ah aron . s md f . core . extensions Ċ Ċ import Ġcom . amazonaws . services . sqs . Amazon SQ S Ċ import Ġorg . junit . jupiter . api . extension . After Test Execution Callback Ċ import Ġorg . junit . jupiter . api . extension . Before Test Execution Callback Ċ import Ġorg . junit . jupiter . api . extension . Extension Context Ċ import Ġorg . k oin . test . inject Ċ import Ġorg . k oin . test . K oin Test Ċ Ċ import Ġus . ah aron . s md f . core . util . Env ĊĊ Ċ private Ġconst Ġval ĠSERVER LESS _ CHECK _ QUEUE Ġ= Ġ" SERVER LESS _ CHECK _ QUEUE " ĊĊ Ċ class ĠServer less Check Queue Extension Ġ: ĠK oin Test , ĠBefore Test Execution Callback , ĠAfter Test Execution Callback Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġenv : ĠEnv Ġby Ġinject () ĊĠĠĠ Ġprivate Ġval Ġsq s : ĠAmazon SQ S Ġby Ġinject () ĊĊĠĠĠ Ġoverride Ġfun Ġbefore Test Execution ( context : ĠExtension Context ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsq s . create Queue ( SERVER LESS _ CHECK _ QUEUE ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġafter Test Execution ( context : ĠExtension Context ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsq s . delete Queue ( env . get ( SERVER LESS _ CHECK _ QUEUE )) ĊĠĠĠ Ġ} Ċ } Ċ