package Ġcom . lam bl in . test . junit 4 Ċ Ċ import Ġcom . lam bl in . local . runner . L am bl in Local Runner Ċ import Ġcom . lam bl in . test . config . L am bl in Test Config Ċ import Ġcom . lam bl in . test . config . annotation . L am bl in TestRunner Config Ċ import Ġcom . lam bl in . test . it . PORT Ċ import Ġio . mock k . mock k Ċ import Ġio . mock k . verify Sequence Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . jupiter . api . Test Instance Ċ import Ġorg . junit . runner . Description Ċ import Ġorg . junit . runner . notification . Run Notifier Ċ Ċ @ Test Instance ( Test Instance . Lifecycle . PER _ CLASS ) Ċ class ĠJ Unit 4 L am bl in TestRunner Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġlocal Runner : ĠL am bl in Local Runner Ġ= Ġmock k ( relax ed Ġ= Ġtrue ) ĊĠĠĠ Ġprivate Ġval Ġnot ifier : ĠRun Notifier Ġ= Ġmock k ( relax ed Ġ= Ġtrue ) ĊĊĠĠĠ Ġ@ org . junit . jupiter . api . Test ĊĠĠĠ Ġfun Ġ` should Ġcreate ĠLocal Runner Ġwhen Ġinstance Ġcreated `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtest Runner Ġ= ĠJ Unit 4 L am bl in TestRunner ( TestClass :: class . java ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( test Runner . local Runner ). isNotNull ĊĠĠĠĠĠĠĠ ĠassertThat ( test Runner . test Runner Config Extractor ). isNotNull ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ org . junit . jupiter . api . Test ĊĠĠĠ Ġfun Ġ` should Ġcreate Ġsuite Ġdescription `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtest Runner Ġ= ĠJ Unit 4 L am bl in TestRunner ( TestClass :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġdescription Ġ= Ġtest Runner . description ĊĊĠĠĠĠĠĠĠ ĠassertThat ( description ). isEqualTo ( Description . create Suite Description ( TestClass :: class . java )) ĊĠĠĠ Ġ} Ċ Ċ } Ċ Ċ @ L am bl in TestRunner Config ( server Port Ġ= ĠPORT , Ġtest Config Class Ġ= ĠTest Configuration :: class ) Ċ class ĠTest Class Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdummy Test () Ġ{ ĊĠĠĠ Ġ} Ċ } Ċ Ċ class ĠTest Configuration : ĠL am bl in Test Config Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġcontrollers () Ġ= Ġset Of < Any >() Ċ Ċ } Ċ