package Ġchat . wil low . war ren . ssl Ċ Ċ import Ġorg . junit . Assert . assertArrayEquals Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Rule Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . rules . Expected Exception Ċ import Ġjava . security . cert . Certificate Exception ĊĊ Ċ class ĠD anger Zone Trust All X 5 0 9 Trust Manager Tests Ġ{ ĊĊĠĠĠ Ġ@ Rule Ġ@ Jvm Field Ġval Ġexception Ġ= ĠExpected Exception . none () !! ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġsut : ĠD anger Zone Trust All X 5 0 9 Trust Manager ĊĊĠĠĠ Ġ@ Before Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġsut Ġ= ĠD anger Zone Trust All X 5 0 9 Trust Manager () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġtest _ check Client Trusted _ Throws Certificate Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġexception . expect ( Certificate Exception :: class . java ) ĊĊĠĠĠĠĠĠĠ Ġsut . check Client Trusted ( empty Array (), Ġ"") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġtest _ check Server Trusted _ DoesNot Throw Exception () Ġ{ ĊĠĠĠĠĠĠĠ Ġsut . check Server Trusted ( empty Array (), Ġ"") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test Ġfun Ġtest _ get Accepted Iss u ers _ IsEmpty () Ġ{ ĊĠĠĠĠĠĠĠ Ġassert ArrayEquals ( empty Array (), Ġsut . accepted Iss u ers ) ĊĠĠĠ Ġ} Ċ Ċ }