Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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