package Ġcom . rule of tech . vehicle data . api Ċ Ċ import Ġcom . rule of tech . vehicle data . Abstract IT Ċ import Ġcom . rule of tech . vehicle data . dto . T ek ni set T ied ot Dto Ċ import Ġorg . assertj . core . api . Assertions . assertThat Ċ import Ġorg . junit . Test Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . http . Response Entity Ċ import Ġkotlin . system . measure Time Millis Ċ Ċ class ĠVehicle Data Resource IT Ġ: ĠAbstract IT () Ġ{ ĊĊĠĠĠ Ġval ĠV EH IC LES Ġ= Ġ"/ v 1 / vehicles " ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` get Ġvehicles `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtook Ġ= Ġmeasure Time Millis Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġresponse : ĠResponseEntity < Array < T ek ni set T ied ot Dto >> Ġ= Ġget ( VE H IC LES ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġvehicles Ġ= Ġresponse . body ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( response . statusCode ). isEqualTo ( HttpStatus . OK ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠassertThat ( vehicles . isNotEmpty ()). isTrue () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġprintln (" TO OK : Ġ$ to ok Ġms ") ĊĠĠĠ Ġ} Ċ }