package Ġio . github . jo ao ev ange lista . con vertx . op Ċ Ċ import Ġio . github . jo ao ev ange lista . con vertx . op . Lengths . CENT IME TER S Ċ import Ġio . github . jo ao ev ange lista . con vertx . op . Lengths . KI LO METER S Ċ import Ġio . github . jo ao ev ange lista . con vertx . op . Lengths . METER S Ċ import Ġio . github . jo ao ev ange lista . con vertx . op . Lengths . M ILE S Ċ import Ġio . github . jo ao ev ange lista . con vertx . op . Lengths . MILLI METER S Ċ import Ġorg . junit . Test Ċ import Ġjavax . measure . unit . Non SI Ċ import Ġjavax . measure . unit . SI Ċ Ċ /** Ċ Ġ* Ġ@ author ĠJo ao ĠPed ro ĠEv ange lista Ċ Ġ*/ Ċ class ĠLength Conversions Test Ġ{ ĊĊĠ Ġ@ Test Ġfun Ġshould Convert Met ers To K ilo meters () Ġ{ ĊĠĠĠ Ġval Ġmeasure Ġ= ĠCon versions . of Length ( 1 0 0 0 . toDouble (), ĠMET ERS , ĠK I LO METER S ) ĊĠĠĠ Ġassert ( measure . value Ġ== Ġ 1 . 0 , Ġ{ Ġ"${ measure . value } Ġis Ġnot Ġequal Ġto Ġ 1 . 0 " Ġ}) ĊĠĠĠ Ġassert ( measure . unit Ġ== ĠSI . KI LO METER ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġshould Convert K ilo meters To Milli meters () Ġ{ ĊĠĠĠ Ġval Ġmeasure Ġ= ĠCon versions . of Length ( 1 . 0 , ĠK I LO METER S , ĠMIL LI METER S ) ĊĠĠĠ Ġassert ( measure . value Ġ== Ġ 1 0 0 0 0 0 0 . 0 , Ġ{ Ġ"${ measure . value } Ġis Ġnot Ġequal Ġto Ġ 1 0 0 0 0 0 0 . 0 " Ġ}) ĊĠĠĠ Ġassert ( measure . unit Ġ== ĠSI . MILLI METER ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġshould Convert Met ers To M iles () Ġ{ ĊĠĠĠ Ġval Ġmeasure Ġ= ĠCon versions . of Length ( 1 . 0 , ĠMET ERS , ĠM ILE S ) ĊĠĠĠ Ġassert ( measure . value Ġ== Ġ 6 . 2 1 3 7 1 1 9 2 2 3 7 3 3 3 9 E - 4 , ĊĠĠĠĠĠ Ġ{ Ġ"${ measure . value } Ġis Ġnot Ġequal Ġto Ġ 6 . 2 1 3 7 1 1 9 2 2 3 7 3 3 3 9 E - 4 " Ġ}) ĊĠĠĠ Ġassert ( measure . unit Ġ== ĠNon SI . M ILE ) ĊĠ Ġ} ĊĊĠ Ġ@ Test Ġfun Ġshould Convert Met ers To Cent ime ters () Ġ{ ĊĠĠĠ Ġval Ġmeasure Ġ= ĠCon versions . of Length ( 1 . 0 , ĠMET ERS , ĠC ENT IME TER S ) ĊĠĠĠ Ġassert ( measure . value Ġ== Ġ 1 0 0 . 0 , Ġ{ Ġ"${ measure . value } Ġis Ġnot Ġequal Ġto Ġ 1 0 0 " Ġ}) ĊĠĠĠ Ġassert ( measure . unit Ġ== ĠSI . CENT IME TER ) ĊĠ Ġ} Ċ Ċ } Ċ