Pihentagy
06/27/2023, 4:01 PMexpectThat(result) {
            get { statusCode }.isEqualTo(HttpStatus.OK)
            get { body }.isNotNull().and {
                get { elements }.and {
                    hasSize(1)
                    expectThat(first().subject) {
                        get { coordinates }.isEqualTo(listOf(coord))
                        get { networkType }.isEqualTo(NetworkType.SWITCH)
                    }
                }
            }
        }Saharath Kleips
06/27/2023, 5:48 PMget(HttpResponse::statusCode).isEqualTo(…)get { statusCode }that(first().subject)expectThatgetget(Subject::coordinates).containsExactlyInAnyOrder(coord)robfletcher
06/27/2023, 9:08 PMexpectThat(result) {
  get { statusCode }.isEqualTo(HttpStatus.OK)
  get { body }
    .isNotNull().get { elements }
    .hasSize(1)
    .withFirst {
      get { coordinates }.isEqualTo(listOf(coord))
      get { networkType }.isEqualTo(NetworkType.SWITCH)
    }
}expectandrobfletcher
06/27/2023, 9:14 PMEric
06/27/2023, 9:15 PMsingle()hasSize(1).withFirst { ... }robfletcher
06/27/2023, 9:15 PM.subjectrobfletcher
06/27/2023, 9:15 PMsinglehasSize(1).first()withFirstPihentagy
06/28/2023, 7:33 AMPihentagy
06/28/2023, 7:33 AMPihentagy
06/28/2023, 7:41 AM.hasSize(1).withFirst() { ... }.single().and() { ... }.single() { ... }robfletcher
06/28/2023, 5:43 PMwithSingle { }robfletcher
06/28/2023, 5:43 PM.single().and { }Pihentagy
06/28/2023, 8:40 PM