package Ġcom . mal in sk iy . mar athon . ios . x ctest run Ċ Ċ import Ġorg . am sh ove . k lu ent . should Equal Ċ import Ġorg . am sh ove . k lu ent . should Have Key Ċ import Ġorg . am sh ove . k lu ent . should Not Have Key Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . io . ByteArray InputStream Ċ import Ġjava . io . File Ċ import Ġcom . mal in sk iy . mar athon . test . Test Ġas ĠMar athon Test Ċ Ċ class ĠX ctest run Test Ġ{ ĊĠĠĠ Ġprivate Ġval Ġfile Ġ= ĠFile ( java Class . class Loader . getResource (" fixtures / x ctest run / UIT esting _ iph ones im ulator 1 1 . 2 - x 8 6 _ 6 4 . x ctest run "). file ) ĊĠĠĠ Ġprivate Ġval Ġx ctest run Ġ= ĠX ctest run ( file ) ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` parsing Ġshould Ġreturn Ġcorrect Ġproperty Ġvalues `() Ġ{ ĊĠĠĠĠĠĠĠ Ġx ctest run . target Name Ġshould Equal Ġ" sample - app UITests " ĊĠĠĠĠĠĠĠ Ġx ctest run . is UIT est Bundle Ġshould Equal Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` parsing Ġshould Ġaccur ately Ġdetermine Ġskipped Ġtests `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtest 1 Ġ= ĠMar athon Test (" sample - app UITests ", Ġ" Skipped Suite ", Ġ" any Test ", ĠlistOf ()) ĊĠĠĠĠĠĠĠ Ġval Ġtest 2 Ġ= ĠMar athon Test (" sample - app UITests ", Ġ" Story board Tests ", Ġ" test Disabled Button ", ĠlistOf ()) ĊĠĠĠĠĠĠĠ Ġval Ġtest 3 Ġ= ĠMar athon Test (" sample - app UITests ", Ġ" Story board Tests ", Ġ" test Label ", ĠlistOf ()) ĊĊĠĠĠĠĠĠĠ Ġx ctest run . is Skipped ( test 1 ) Ġshould Equal Ġtrue ĊĠĠĠĠĠĠĠ Ġx ctest run . is Skipped ( test 2 ) Ġshould Equal Ġtrue ĊĠĠĠĠĠĠĠ Ġx ctest run . is Skipped ( test 3 ) Ġshould Equal Ġfalse ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġinstance Ġshould Ġverify Ġequality Ġignoring Ġkey Ġorder `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġreordered File Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠFile ( java Class . class Loader . getResource (" fixtures / x ctest run / UIT esting _ iph ones im ulator 1 1 . 2 - x 8 6 _ 6 4 - reordered . x ctest run "). file ) ĊĠĠĠĠĠĠĠ Ġval Ġreordered Ġ= ĠX ctest run ( reordered File ) ĊĊĠĠĠĠĠĠĠ Ġreordered Ġshould Equal Ġx ctest run ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġinstance Ġshould Ġaccur ately Ġserialize Ġand Ġdeserialize `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġother Ġ= ĠX ctest run ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠByteArrayInputStream ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġx ctest run . to XML String (). toByteArray () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĊĠĠĠĠĠĠĠ Ġother Ġshould Equal Ġx ctest run ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġinstance Ġshould Ġbe Ġequal Ġto Ġits Ġclone `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġclone Ġ= Ġx ctest run . clone () ĊĊĠĠĠĠĠĠĠ Ġclone Ġshould Equal Ġx ctest run ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġinstance Ġshould Ġbe Ġable Ġto Ġmodify Ġenvironment Ġvariables `() Ġ{ ĊĠĠĠĠĠĠĠ Ġx ctest run . environment (" SPE K _ DEBUG ", Ġ" YES ") ĊĊĠĠĠĠĠĠĠ Ġx ctest run . environment Variables Ġshould Have Key Ġ" SPE K _ DEBUG " ĊĠĠĠĠĠĠĠ Ġx ctest run . environment Variables [" SPE K _ DEBUG "] Ġshould Equal Ġ" YES " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġinstance Ġshould Ġbe Ġable Ġto Ġmodify Ġtesting Ġenvironment Ġvariables `() Ġ{ ĊĠĠĠĠĠĠĠ Ġx ctest run . testing Environment (" SPE K _ DEBUG ", Ġ" YES ") ĊĊĠĠĠĠĠĠĠ Ġx ctest run . testing Environment Variables Ġshould Have Key Ġ" SPE K _ DEBUG " ĊĠĠĠĠĠĠĠ Ġx ctest run . testing Environment Variables [" SPE K _ DEBUG "] Ġshould Equal Ġ" YES " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġinstance Ġshould Ġnot Ġupdate Ġclone Ġwhen Ġsource Ġchanges `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġclone Ġ= Ġx ctest run . clone () ĊĊĠĠĠĠĠĠĠ Ġx ctest run . environment (" SPE K _ DEBUG ", Ġ" YES ") ĊĠĠĠĠĠĠĠ Ġx ctest run . testing Environment (" SPE K _ DEBUG ", Ġ" YES ") ĊĊĠĠĠĠĠĠĠ Ġclone . environment Variables Ġshould Not Have Key Ġ" SPE K _ DEBUG " ĊĠĠĠĠĠĠĠ Ġclone . testing Environment Variables Ġshould Not Have Key Ġ" SPE K _ DEBUG " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` a Ġvalid Ġfile Ġwith Ġmetadata Ġkey Ġshould Ġaccur ately Ġdetermine Ġthe Ġtest able Ġtarget Ġkey `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġupdated File Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠFile ( java Class . class Loader . getResource (" fixtures / x ctest run / UIT esting _ iph ones im ulator 1 2 . 1 - x 8 6 _ 6 4 . x ctest run "). file ) ĊĠĠĠĠĠĠĠ Ġval Ġx ctest run Ġ= ĠX ctest run ( updated File ) ĊĠĠĠĠĠĠĠ Ġx ctest run . target Name Ġshould Equal Ġ" sample - app UITests " ĊĠĠĠ Ġ} Ċ } Ċ