Rohde Fischer
08/07/2022, 2:56 PMAleksei Tirman [JB]
08/08/2022, 11:46 AMRohde Fischer
08/08/2022, 4:38 PMval testKtor = TODO()
val myService = Service(testKtor)
val host = Host("127.0.0.1", 22)
myService.perform(host)
testKtor.connections.shouldHaveSize(1)
val connection = testKtor.connections[0]
connection.type = ConnectionTypes.TCP
connection.host.shouldBe("127.0.0.1")
connection.post.shouldBe(22)
(whether it be exactly like that or not doesn't matter, it's more that I can test that it respects the parameters - preferrably in a way that's independent on if I call .connect(host, port)
, .connect(SocketAddress(...))
or something else)Aleksei Tirman [JB]
08/09/2022, 10:30 AM