adamtrilling
04/18/2017, 12:57 PMclass BotAuthTest : StringSpec() {
val vertx = Vertx.vertx()
val client = vertx.createHttpClient()
init {
"connections with no auth token are denied" {
shouldThrow<Exception> {
client.websocket("/ws/bot",
{ websocket -> println("Connected!") },
{ error ->
println("error!")
throw error
}
)
}
}
}
}