Fixed log messages

This commit is contained in:
nathan 2020-09-11 10:28:54 +02:00
parent 77d114e525
commit 5f228cf7b4
2 changed files with 4 additions and 4 deletions

View File

@ -74,11 +74,11 @@ object TestClient {
val client = Client<Connection>(config)
client.onConnect { connection ->
System.err.println("Starting test for: Client -> Server")
connection.logger.error("Starting test for: Client -> Server")
connection.createObject<TestCow>(124123) { _, remoteObject ->
RmiCommonTest.runTests(connection, remoteObject, 124123)
client.logger.error("DONE")
connection.logger.error("DONE")
// now send this remote object ACROSS the wire to the server (on the server, this is where the IMPLEMENTATION lives)
connection.send(remoteObject)
@ -88,7 +88,7 @@ object TestClient {
}
client.onMessage<TestCow> { connection, test ->
System.err.println("Received test cow from server")
connection.logger.error("Received test cow from server")
// this object LIVES on the server.
try {

View File

@ -46,7 +46,7 @@ object TestServer {
val server = Server<Connection>(configuration)
server.onMessage<MessageWithTestCow> { connection, m ->
System.err.println("Received finish signal for test for: Client -> Server")
connection.logger.error("Received finish signal for test for: Client -> Server")
val `object` = m.testCow
val id = `object`.id()
Assert.assertEquals(124123, id.toLong())