From c07e8ef4727263a8d248250155fff06469fec729 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Mon, 21 Jan 2013 13:15:59 -0800 Subject: [PATCH] Fixed a compiler error in new sync unit tests --- tests-sync/src/com/todoroo/astrid/sync/SyncMessageTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests-sync/src/com/todoroo/astrid/sync/SyncMessageTest.java b/tests-sync/src/com/todoroo/astrid/sync/SyncMessageTest.java index b28cd152c..6884d08ff 100644 --- a/tests-sync/src/com/todoroo/astrid/sync/SyncMessageTest.java +++ b/tests-sync/src/com/todoroo/astrid/sync/SyncMessageTest.java @@ -65,7 +65,7 @@ public class SyncMessageTest extends NewSyncTestCase { JSONObject makeChanges = getMakeChanges(); makeChanges.put("uuid", t.getValue(Task.UUID)); - ServerToClientMessage message = ServerToClientMessage.instantiateMessage(makeChanges); + ServerToClientMessage message = ServerToClientMessage.instantiateMessage(makeChanges, DateUtilities.now()); message.processMessage(); t = taskDao.fetch(t.getId(), Task.TITLE, Task.IMPORTANCE); @@ -81,7 +81,7 @@ public class SyncMessageTest extends NewSyncTestCase { try { JSONObject makeChanges = getMakeChanges(); makeChanges.put("uuid", "1"); - ServerToClientMessage message = ServerToClientMessage.instantiateMessage(makeChanges); + ServerToClientMessage message = ServerToClientMessage.instantiateMessage(makeChanges, DateUtilities.now()); message.processMessage(); TodorooCursor cursor = taskDao.query(Query.select(Task.ID, Task.UUID, Task.TITLE, Task.IMPORTANCE).where(Task.UUID.eq("1"))); @@ -108,7 +108,7 @@ public class SyncMessageTest extends NewSyncTestCase { long date = DateUtilities.now(); JSONObject makeChanges = getMakeChangesForPushedAt(date); - ServerToClientMessage message = ServerToClientMessage.instantiateMessage(makeChanges); + ServerToClientMessage message = ServerToClientMessage.instantiateMessage(makeChanges, DateUtilities.now()); message.processMessage(); assertEquals(date, Preferences.getLong(NameMaps.PUSHED_AT_TASKS, 0));