Singleton lists and singleton sets aren't equal, so use lists

consistently.
This commit is contained in:
akwizgran
2011-11-15 09:42:21 +00:00
parent 0da94879ef
commit 6fd8493d3d
5 changed files with 31 additions and 29 deletions

View File

@@ -62,7 +62,7 @@ public class ConnectionRecogniserImplTest extends TestCase {
oneOf(db).getLocalTransports();
will(returnValue(transports));
oneOf(db).getContacts();
will(returnValue(Collections.singleton(contactId)));
will(returnValue(Collections.singletonList(contactId)));
oneOf(db).getSharedSecret(contactId);
will(returnValue(secret));
oneOf(db).getRemoteIndex(contactId, transportId);
@@ -93,7 +93,7 @@ public class ConnectionRecogniserImplTest extends TestCase {
oneOf(db).getLocalTransports();
will(returnValue(transports));
oneOf(db).getContacts();
will(returnValue(Collections.singleton(contactId)));
will(returnValue(Collections.singletonList(contactId)));
oneOf(db).getSharedSecret(contactId);
will(returnValue(secret));
oneOf(db).getRemoteIndex(contactId, transportId);