Skip to content

Instantly share code, notes, and snippets.

@JohanneA
Created November 22, 2021 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohanneA/ec80406e0c64e82e98e9344649521dd1 to your computer and use it in GitHub Desktop.
Save JohanneA/ec80406e0c64e82e98e9344649521dd1 to your computer and use it in GitHub Desktop.
Kotlin test DSL
fun getShipmentWithOneBox(): Shipment {
return ShipmentBuilder()
.withId(1L)
.withBoxes(
BoxBuilder()
.withId(1L)
.withContents(
ProductBuilder()
.withId(1L)
.withName("Pink Fuzzy Jacket")
.build()
).build()
).build()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment