package Ġuk . n hs . n hs x . di agnosis key ss ub mission . model Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġstri kt . api . expect That Ċ import Ġuk . n hs . n hs x . test helper . assertions . isEqualTo Json Ċ import Ġuk . n hs . n hs x . test helper . assertions . toJson Ċ Ċ class ĠClient Temporary Exposure Key Test Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` marshall Ġto ĠJSON `() Ġ{ ĊĠĠĠĠĠĠĠ Ġexpect That ( Client Temporary Exposure Key (" key ", Ġ 0 , Ġ 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. toJson () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo Json (""" {" key ":" key "," rolling Start Number ": 0 ," rolling Period ": 0 ," transmission Risk Level ": 7 } """) ĊĊĠĠĠĠĠĠĠ Ġexpect That ( Client Temporary Exposure Key ( null , Ġ 0 , Ġ 0 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. toJson () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo Json (""" {" key ": null ," rolling Start Number ": 0 ," rolling Period ": 0 ," transmission Risk Level ": 7 } """) ĊĊĠĠĠĠĠĠĠ Ġexpect That ( Client Temporary Exposure Key ( null , Ġ 0 , Ġ 0 ). apply Ġ{ Ġdays Since On set Of Sy mptoms Ġ= Ġ 5 Ġ}) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. toJson () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo Json (""" {" key ": null ," rolling Start Number ": 0 ," rolling Period ": 0 ," transmission Risk Level ": 7 ," days Since On set Of Sy mptoms ": 5 } """) ĊĊĠĠĠĠĠĠĠ Ġexpect That ( Client Temporary Exposure Key ( null , Ġ 0 , Ġ 0 ). apply Ġ{ Ġdays Since On set Of Sy mptoms Ġ= Ġ 5 Ġ}) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. toJson () ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo Json (""" {" key ": null ," rolling Start Number ": 0 ," rolling Period ": 0 ," transmission Risk Level ": 7 ," days Since On set Of Sy mptoms ": 5 } """) ĊĠĠĠ Ġ} Ċ } Ċ