package Ġuk . gov . just ice . digital . h mp ps . where about s . integration Ċ Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . jupiter . api . Test Ċ import Ġuk . gov . just ice . digital . h mp ps . where about s . model . Location Ċ Ċ class ĠPr ison IntegrationTest Ġ: ĠIntegration Test () Ġ{ ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġ` should Ġretrieve Ġdetails Ġof Ġrooms Ġof Ġtype ĠV IDE Ġonly `() Ġ{ ĊĊĠĠĠ Ġpr ison Api Mock Server . stub Get Ag ency Locations ForType Un restricted (" M DI ", Ġ" APP ", Ġget V ide Locations ()) ĊĊĠĠĠ Ġweb Test Client . get () ĊĠĠĠĠĠ Ġ. uri ("/ video - link - rooms / M DI ") ĊĠĠĠĠĠ Ġ. headers ( set Headers ()) ĊĠĠĠĠĠ Ġ. exchange () ĊĠĠĠĠĠ Ġ. expect Status (). is Ok ĊĠĠĠĠĠ Ġ. expect Body () ĊĠĠĠĠĠ Ġ. json Path ("[ 0 ]. location Id "). isEqualTo ( 1 ) ĊĠĠĠĠĠ Ġ. json Path ("[ 0 ]. description "). isEqualTo (" Room ĠA ") ĊĠĠĠĠĠ Ġ. json Path ("[ 1 ]. location Id "). isEqualTo ( 2 ) ĊĠĠĠĠĠ Ġ. json Path ("[ 1 ]. description "). isEqualTo (" room - b ") ĊĠĠĠĠĠ Ġ. json Path (" $. length () "). value < Int > Ġ{ ĠassertThat ( it ). isEqualTo ( 2 ) Ġ} ĊĠ Ġ} Ċ } Ċ Ċ private Ġfun Ġget V ide Locations () Ġ= ĊĠ ĠlistOf ( ĊĠĠĠ ĠLocation ( ĊĠĠĠĠĠ Ġlocation Id Ġ= Ġ 1 , Ġlocation Type Ġ= Ġ" VID E ", Ġdescription Ġ= Ġ" room - a ", ĊĠĠĠĠĠ Ġlocation Usage Ġ= Ġ"", Ġagency Id Ġ= Ġ" M DI ", Ġparent Location Id Ġ= Ġ 1 2 3 , ĊĠĠĠĠĠ Ġcurrent Occup ancy Ġ= Ġ 2 , Ġlocation Prefix Ġ= Ġ"", Ġoperational Capacity Ġ= Ġ 1 0 , ĊĠĠĠĠĠ Ġuser Description Ġ= Ġ" Room ĠA ", Ġinternal Location Code Ġ= Ġ"" ĊĠĠĠ Ġ), ĊĊĠĠĠ ĠLocation ( ĊĠĠĠĠĠ Ġlocation Id Ġ= Ġ 2 , Ġlocation Type Ġ= Ġ" VID E ", Ġdescription Ġ= Ġ" room - b ", ĊĠĠĠĠĠ Ġlocation Usage Ġ= Ġ"", Ġagency Id Ġ= Ġ" M DI ", Ġparent Location Id Ġ= Ġ 1 2 3 , ĊĠĠĠĠĠ Ġcurrent Occup ancy Ġ= Ġ 2 , Ġlocation Prefix Ġ= Ġ"", Ġoperational Capacity Ġ= Ġ 1 0 , ĊĠĠĠĠĠ Ġuser Description Ġ= Ġnull , Ġinternal Location Code Ġ= Ġ"" ĊĠĠĠ Ġ), ĊĊĠĠĠ ĠLocation ( ĊĠĠĠĠĠ Ġlocation Id Ġ= Ġ 3 , Ġlocation Type Ġ= Ġ" ME ET ING ", Ġdescription Ġ= Ġ" Meeting Ġroom ", ĊĠĠĠĠĠ Ġlocation Usage Ġ= Ġ"", Ġagency Id Ġ= Ġ" M DI ", Ġparent Location Id Ġ= Ġ 1 2 3 , ĊĠĠĠĠĠ Ġcurrent Occup ancy Ġ= Ġ 2 , Ġlocation Prefix Ġ= Ġ"", Ġoperational Capacity Ġ= Ġ 1 0 , ĊĠĠĠĠĠ Ġuser Description Ġ= Ġ"", Ġinternal Location Code Ġ= Ġ"" ĊĠĠĠ Ġ), ĊĠ Ġ) Ċ