package Ġio . github . b hu wan up ad hy ay . rt ms . gateway Ċ Ċ import Ġorg . junit . jupiter . api . BeforeEach Ċ import Ġorg . junit . jupiter . api . Method Order er . Al phanumeric Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġorg . junit . jupiter . api . TestMethod Order Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ import Ġorg . springframework . boot . test . context . SpringBootTest Ċ import Ġorg . springframework . boot . web . server . Local Server Port Ċ import Ġorg . springframework . test . context . junit . jupiter . Spring Extension Ċ import Ġorg . springframework . test . web . reactive . server . Web Test Client Ċ Ċ @ Extend With ( Spring Extension :: class ) Ċ @ SpringBootTest ( web Environment Ġ= ĠSpring Boot Test . Web Environment . RANDOM _ PORT ) Ċ @ TestMethod Order ( Al phanumeric :: class ) Ċ internal Ġclass ĠR t ms Service Discovery IntegrationTest Ġ{ ĊĠĠĠ Ġ@ Local Server Port ĊĠĠĠ Ġprivate Ġval Ġport Ġ= Ġ 0 ĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġclient : ĠWeb Test Client ĊĊĠĠĠ Ġ@ BeforeEach ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġclient Ġ= ĠWeb Test Client . bind ToServer (). baseUrl (" http :// localhost :$ port "). build () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` can Ġstart Ġapplication Ġsuccessfully `() Ġ{ ĊĠĠĠ Ġ} Ċ Ċ } Ċ