package Ġfr . n sp u . dev . record voice learning . utils Ċ Ċ import Ġorg . junit . Assert . assertEquals Ċ import Ġorg . junit . Test Ċ Ċ /** Ċ Ġ* ĠCreated Ġby Ġn sp u Ġon Ġ 1 8 - 0 2 - 2 2 . Ċ Ġ*/ Ċ class ĠOrder Peer Enum Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Throws ( Exception :: class ) ĊĠĠĠ Ġfun Ġto Int () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġi 0 Ġ= ĠOrder Peer Enum . KNO W LED GE _ ASC ENDING . toInt () ĊĠĠĠĠĠĠĠ Ġval Ġi 1 Ġ= ĠOrder Peer Enum . KNO W LED GE _ DESC ENDING . toInt () ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( i 0 . to Long (), Ġ 0 ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( i 1 . to Long (), Ġ 1 ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġ@ Throws ( Exception :: class ) ĊĠĠĠ Ġfun Ġto Order Peer Enum () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġorder Peer Enum NotIn Range Ġ= ĠOrder Peer Enum . to Order Peer Enum ( 5 ) ĊĠĠĠĠĠĠĠ Ġval Ġorder Peer Enum Correct 0 Ġ= ĠOrder Peer Enum . to Order Peer Enum ( 0 ) ĊĠĠĠĠĠĠĠ Ġval Ġorder Peer Enum Correct 1 Ġ= ĠOrder Peer Enum . to Order Peer Enum ( 1 ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( order Peer Enum NotIn Range , ĠOrder Peer Enum . KNO W LED GE _ ASC ENDING ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( order Peer Enum Correct 0 , ĠOrder Peer Enum . KNO W LED GE _ ASC ENDING ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( order Peer Enum Correct 1 , ĠOrder Peer Enum . KNO W LED GE _ DESC ENDING ) ĊĠĠĠ Ġ} Ċ Ċ }