package Ġno . fd k . fd k _ event _ har v ester . contract Ċ Ċ import Ġno . fd k . fd k _ event _ har v ester . utils . api Get Ċ import Ġorg . junit . jupiter . api .* Ċ import Ġorg . junit . jupiter . api . Assertions . assertEquals Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . boot . web . server . Local Server Port Ċ import Ġorg . springframework . http . HttpStatus Ċ Ċ @ Test Instance ( Test Instance . Lifecycle . PER _ CLASS ) Ċ @ SpringBootTest ( ĊĠĠĠ Ġproperties Ġ= Ġ[" spring . profiles . active = contract - test "], ĊĠĠĠ Ġweb Environment Ġ= ĠSpring Boot Test . Web Environment . RANDOM _ PORT ) Ċ @ Tag (" contract ") Ċ class ĠStatus Test Ġ{ ĊĊĠĠĠ Ġ@ Local Server Port ĊĠĠĠ Ġvar Ġport : ĠInt Ġ= Ġ 0 ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġping () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġapi Get ( port , Ġ"/ ping ", Ġnull ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( HttpStatus . OK . value (), Ġresponse [" status "]) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġready () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġresponse Ġ= Ġapi Get ( port , Ġ"/ ready ", Ġnull ) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( HttpStatus . OK . value (), Ġresponse [" status "]) ĊĠĠĠ Ġ} Ċ Ċ }