package Ġcz . enc irc led . j put . runner Ċ Ċ import Ġcz . enc irc led . j put . annotation . Performance Suite Ċ import Ġcz . enc irc led . j put . runner . junit . J Put JUnit 4 Runner Ċ import Ġorg . junit . Fix Method Order Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . junit . runners . Method Sort ers Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertFalse Ċ import Ġkotlin . test . assertTrue Ċ Ċ /** Ċ Ġ* Ġ@ author ĠV lad Ġon Ġ 2 1 - Sep - 1 9 . Ċ Ġ*/ Ċ @ Performance Suite ( parallel Ġ= Ġtrue ) Ċ @ Fix Method Order ( Method Sort ers . NAME _ ASC ENDING ) Ċ @ RunWith ( J Put JUnit 4 Runner :: class ) Ċ class ĠJ unit 4 TestRunner Parallel Test Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġstep Finished Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġstep _ 1 () Ġ{ ĊĠĠĠĠĠĠĠ ĠThread . sleep ( 1 0 0 ) ĊĠĠĠĠĠĠĠ Ġstep Finished Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġz _ verify () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertFalse ( step Finished , Ġ" step _ 1 Ġwould Ġnot Ġfinish Ġyet Ġif Ġrunning Ġin Ġparallel ") ĊĠĠĠ Ġ} Ċ Ċ } Ċ Ċ @ Performance Suite Ċ @ Fix Method Order ( Method Sort ers . NAME _ ASC ENDING ) Ċ @ RunWith ( J Put JUnit 4 Runner :: class ) Ċ class ĠJ unit 4 TestRunner No Parallel Test Ġ{ ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠĠĠĠĠ Ġvar Ġstep Finished Ġ= Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġstep _ 1 () Ġ{ ĊĠĠĠĠĠĠĠ ĠThread . sleep ( 1 0 0 ) ĊĠĠĠĠĠĠĠ Ġstep Finished Ġ= Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġz _ verify () Ġ{ ĊĠĠĠĠĠĠĠ ĠassertTrue ( step Finished , Ġ" step _ 1 Ġshould Ġhave Ġfinished Ġalready Ġif Ġrunning Ġin Ġsequence ") ĊĠĠĠ Ġ} Ċ Ċ }