Skip to content

Instantly share code, notes, and snippets.

@viggin543
Created April 25, 2020 19:09
Show Gist options
  • Save viggin543/bbbbf0250aad4b76515832db2fce9865 to your computer and use it in GitHub Desktop.
Save viggin543/bbbbf0250aad4b76515832db2fce9865 to your computer and use it in GitHub Desktop.
@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