Created
April 25, 2020 19:09
-
-
Save viggin543/bbbbf0250aad4b76515832db2fce9865 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @Test fun `blocking example` () { | |
| vertx = Vertx.vertx() | |
| runBlocking { | |
| vertx.deployVerticleAwait(MainVerticle()) | |
| } | |
| apiInstace = BananasApi(ApiClient() | |
| .setBasePath("http://localhost:8080/") | |
| ) | |
| val actual = apiInstace.createBanana(CreateBanana().color("GREEN").price(2.0)) | |
| assertEquals(Banana().color(Banana.ColorEnum.GREEN).price(2.0).id("iddqd"),actual, | |
| "created a new banana as expected") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment