package Ġde . ade sso . junit insights . model Ċ Ċ import Ġde . ade sso . junit insights . model . Event Log . log Ċ import Ġde . ade sso . junit insights . tools . Insight Properties Ċ import Ġorg . junit . jupiter . api . After Each Ċ import Ġorg . junit . jupiter . api . Assertions . assertEquals Ċ import Ġorg . junit . jupiter . api . BeforeEach Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . util . Date Ċ Ċ class ĠEvent Log Test Ġ{ ĊĊĠĠĠ Ġ@ BeforeEach ĊĠĠĠ Ġfun ĠbeforeEach () Ġ= ĠEvent Log . clear Events () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġbasic Logging Test () Ġ{ ĊĠĠĠĠĠĠĠ ĠIns ight Properties . enabled Ġ= Ġtrue ĊĊĠĠĠĠĠĠĠ Ġcreate Test Events () ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( 7 , ĠEvent Log . event Count ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ After Each ĊĠĠĠ Ġfun Ġclear Events () Ġ= ĠEvent Log . clear Events () ĊĊĠĠĠ Ġprivate Ġfun Ġcreate Test Events () Ġ{ ĊĠĠĠĠĠĠĠ Ġlog ( Event (" before Ġall ", ĠDate ( 0 ), Ġ" test - class ")) ĊĠĠĠĠĠĠĠ Ġlog ( Event (" context Ġref reshed ", ĠDate ( 1 ))) ĊĠĠĠĠĠĠĠ Ġlog ( Event (" before Ġeach ", ĠDate ( 3 ), Ġ" test - class ", Ġ" test - method ")) ĊĠĠĠĠĠĠĠ Ġlog ( Event (" before Ġtest Ġexecution ", ĠDate ( 6 ), Ġ" test - class ", Ġ" test - method ")) ĊĠĠĠĠĠĠĠ Ġlog ( Event (" after Ġtest Ġexecution ", ĠDate ( 1 0 ), Ġ" test - class ", Ġ" test - method ")) ĊĠĠĠĠĠĠĠ Ġlog ( Event (" after Ġeach ", ĠDate ( 1 5 ), Ġ" test - class ", Ġ" test - method ")) ĊĠĠĠĠĠĠĠ Ġlog ( Event (" after Ġall ", ĠDate ( 2 1 ), Ġ" test - class ")) ĊĠĠĠ Ġ} Ċ } Ċ