package Ġde . cl audio alt am ura . kotlin . examples Ċ Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Assertions . assert Throws Ċ Ċ class ĠTry Catch Test Ġ{ ĊĊ ĉ @ Test Ċ ĉ fun Ġtest () Ġ{ Ċĉ ĉ assertThat ( getNumber (" 2 . 5 ")). isEqualTo ( 0 ) Ċ ĉ } ĊĊ ĉ @ Test Ċ ĉ fun Ġtest Nullable () Ġ{ Ċĉ ĉ assertThat ( getNumber Nullable (" 2 . 5 ")). isNull () Ċ ĉ } ĊĊ ĉ @ Test Ċ ĉ fun Ġtest Exception OnError () Ġ{ Ċĉ ĉ assert Throws ( Illegal AccessException :: class . java ) Ġ{ Ċĉĉ ĉ getNumber Nullable (" 2 . 5 ") Ġ?: Ġthrow ĠIllegal AccessException () Ċĉ ĉ } Ċ ĉ } Ċ Ċ }