From 35f34ff5976bf7a327ccc3d194f6900e9a237855 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 12 Apr 2013 16:24:48 -0700 Subject: [PATCH] Unit test improvement --- tests/src/com/todoroo/astrid/sync/SyncMessageTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/src/com/todoroo/astrid/sync/SyncMessageTest.java b/tests/src/com/todoroo/astrid/sync/SyncMessageTest.java index 01b2ab667..71adb9d94 100644 --- a/tests/src/com/todoroo/astrid/sync/SyncMessageTest.java +++ b/tests/src/com/todoroo/astrid/sync/SyncMessageTest.java @@ -11,7 +11,6 @@ import com.todoroo.astrid.actfm.sync.messages.ChangesHappened; import com.todoroo.astrid.actfm.sync.messages.NameMaps; import com.todoroo.astrid.actfm.sync.messages.ReplayOutstandingEntries; import com.todoroo.astrid.actfm.sync.messages.ServerToClientMessage; -import com.todoroo.astrid.actfm.sync.messages.UserMigrated; import com.todoroo.astrid.data.RemoteModel; import com.todoroo.astrid.data.SyncFlags; import com.todoroo.astrid.data.TagData; @@ -160,7 +159,8 @@ public class SyncMessageTest extends NewSyncTestCase { fail("JSONException"); } - new UserMigrated(userMigrated).processMessage(null); + ServerToClientMessage message = ServerToClientMessage.instantiateMessage(userMigrated); + message.processMessage(null); t = taskDao.fetch(t.getId(), Task.USER_ID); td = tagDataDao.fetch(td.getId(), TagData.USER_ID);