package Ġfr . n sp u . dev . record voice learning . controller . converter Ċ Ċ import Ġfr . n sp u . dev . record voice learning . utils . Question To Answer Enum Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġn sp u Ġon Ġ 1 8 - 0 2 - 2 3 . Ċ Ġ*/ Ċ class ĠQuestion To Answer Enum Converter Test Ġ{ ĊĠĠĠ Ġval Ġquestion To Answer Enum Converter Ġ= ĠQuestion To Answer Enum Converter () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Throws ( Exception :: class ) ĊĠĠĠ Ġfun Ġto Question To Answer Enum () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġquestion To Answer Enum True Ġ= Ġquestion To Answer Enum Converter . to Question To Answer Enum ( true ) ĊĠĠĠĠĠĠĠ Ġval Ġquestion To Answer Enum False Ġ= Ġquestion To Answer Enum Converter . to Question To Answer Enum ( false ) ĊĠĠĠĠĠĠĠ Ġval Ġquestion To Answer Enum False Default Ġ= Ġquestion To Answer Enum Converter . to Question To Answer Enum ( null ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( question To Answer Enum True , ĠQuestion To Answer Enum . QUEST ION _ TO _ AN SW ER ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( question To Answer Enum False , ĠQuestion To Answer Enum . AN SW ER _ TO _ QUEST ION ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( question To Answer Enum False Default , ĠQuestion To Answer Enum . QUEST ION _ TO _ AN SW ER ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Throws ( Exception :: class ) ĊĠĠĠ Ġfun Ġto Boolean () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġb True Ġ= Ġquestion To Answer Enum Converter . to Boolean ( Question To Answer Enum . QUEST ION _ TO _ AN SW ER ) ĊĠĠĠĠĠĠĠ Ġval Ġb False Ġ= Ġquestion To Answer Enum Converter . to Boolean ( Question To Answer Enum . AN SW ER _ TO _ QUEST ION ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( b True , Ġtrue ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( b False , Ġfalse ) ĊĠĠĠ Ġ} Ċ Ċ }