Created
November 22, 2021 14:59
-
-
Save JohanneA/ec80406e0c64e82e98e9344649521dd1 to your computer and use it in GitHub Desktop.
Kotlin test DSL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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