Skip to content
Snippets Groups Projects
Commit aeac7188 authored by Paul-Christian Volkmer's avatar Paul-Christian Volkmer
Browse files

Fixed assertion on two references of different class types

User object will be serialized into a String using toString() but this
should not be done in a unit test.
parent 11d38ec0
No related merge requests found
......@@ -54,7 +54,7 @@ public class UserServiceTest {
objOut.writeObject(socketid2user);
objOut.close();
ObjectInputStream objIn = new ObjectInputStream(new ByteArrayInputStream(out.toByteArray()));
Map<UUID, String> actual = (Map<UUID, String>) objIn.readObject();
Map<UUID, User> actual = (Map<UUID, User>) objIn.readObject();
assertEquals(actual, socketid2user);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment