package Ġch . lead rian . samp . k amp . core . runtime . entity . property Ċ Ċ import Ġch . lead rian . samp . k amp . core . api . data . Vector 3 D Ċ import Ġch . lead rian . samp . k amp . core . api . entity . Player Ċ import Ġch . lead rian . samp . k amp . core . api . entity . id . Player Id Ċ import Ġch . lead rian . samp . k amp . core . runtime . SAMP Native Function Executor Ċ import Ġch . lead rian . samp . k amp . core . runtime . types . Reference Float Ċ import Ġio . mock k . every Ċ import Ġio . mock k . mock k Ċ import Ġio . mock k . verify Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . BeforeEach Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġkotlin . reflect . K Property Ċ Ċ internal Ġclass ĠPlayer Health Property Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġplayer Id : ĠPlayer Id Ġ= ĠPlayer Id . valueOf ( 5 0 ) ĊĠĠĠ Ġprivate Ġval Ġplayer : ĠPlayer Ġ= Ġmock k () ĊĠĠĠ Ġprivate Ġval Ġnative Function Executor : ĠS AMP Native Function Executor Ġ= Ġmock k () ĊĠĠĠ Ġprivate Ġval Ġproperty : ĠK Property < Vector 3 D > Ġ= Ġmock k () ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġplayer Health Property : ĠPlayer Health Property ĊĊĠĠĠ Ġ@ BeforeEach ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġevery Ġ{ Ġplayer . id Ġ} Ġreturns Ġplayer Id ĊĠĠĠĠĠĠĠ Ġplayer Health Property Ġ= ĠPlayer Health Property ( native Function Executor ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Get Health () Ġ{ ĊĠĠĠĠĠĠĠ Ġevery Ġ{ Ġnative Function Executor . getPlayer Health ( player Id . value , Ġany ()) Ġ} Ġanswers Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsecond Arg < Reference Float >(). value Ġ= Ġ 4 f ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtrue ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġval Ġhealth Ġ= Ġplayer Health Property . getValue ( player , Ġproperty ) ĊĊĠĠĠĠĠĠĠ ĠassertThat ( health ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. isEqualTo ( 4 f ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġshould Set Health () Ġ{ ĊĠĠĠĠĠĠĠ Ġevery Ġ{ Ġnative Function Executor . set Player Health ( any (), Ġany ()) Ġ} Ġreturns Ġtrue ĊĊĠĠĠĠĠĠĠ Ġplayer Health Property . setValue ( player , Ġproperty , Ġ 4 f ) ĊĊĠĠĠĠĠĠĠ Ġverify Ġ{ Ġnative Function Executor . set Player Health ( player id Ġ= Ġplayer Id . value , Ġhealth Ġ= Ġ 4 f ) Ġ} ĊĠĠĠ Ġ} Ċ Ċ }