package Ġcom . k re ait . bots . agile . core . stand up definition . create Ċ Ċ import Ġcom . k re ait . bots . agile . domain . slack . stand up Definition . create . dialog . dto . Create Dialog Submission Ċ import Ġorg . junit . jupiter . api . Assertions . assertEquals Ċ import Ġorg . junit . jupiter . api . Assertions . assertTrue Ċ import Ġorg . junit . jupiter . api . DisplayName Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġjava . time . DayOfWeek Ċ import Ġjava . time . Local Time Ċ Ċ @ DisplayName (" Create Dialog Submission ") Ċ class ĠCreate Dialog Submission UnitTests Ġ{ ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ DisplayName (" Deserialization ") ĊĠĠĠ Ġfun Ġtest Deserialization () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġpayload Map Ġ= Ġmap Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . NAME , Ġ" Name "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . DAYS , Ġ" mon Ġt ue Ġw ed "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . TIME , Ġ" 1 0 : 0 0 "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . BRO ADCAST _ CHANNEL _ ID , Ġ" Channel Id "), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠPair ( Create Dialog Submission . QUEST IONS , Ġ" Q 1 \ n Q 2 \ n Q 3 ") ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġval Ġsubmission Ġ= ĠCreate Dialog Submission . of ( payload Map ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( payload Map [ Create Dialog Submission . NAME ], Ġsubmission . name ) ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( submission . days . size Ġ== Ġ 3 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( submission . days . contains All ( listOf ( DayOfWeek . MON DAY , ĠDay OfWeek . T UES DAY , ĠDay OfWeek . W ED N ES DAY ))) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( Local Time . of ( 1 0 , Ġ 0 ), Ġsubmission . time ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( payload Map [ Create Dialog Submission . BRO ADCAST _ CHANNEL _ ID ], Ġsubmission . broadcast Channel Id ) ĊĊĠĠĠĠĠĠĠ ĠassertTrue ( submission . questions . size Ġ== Ġ 3 ) ĊĠĠĠĠĠĠĠ ĠassertTrue ( submission . questions . contains All ( listOf (" Q 1 ", Ġ" Q 2 ", Ġ" Q 3 "))) ĊĠĠĠ Ġ} Ċ } Ċ