From 72c3621ac280c02d3540496db1a0d642f5367f2c Mon Sep 17 00:00:00 2001 From: Waldemar Date: Tue, 25 Aug 2015 00:11:30 +0200 Subject: [PATCH] Fixes #662 Removed ActivityService methods with object parameters in favour of key parameter methods --- .../schedule/appengine/model/activity/ActivityServiceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schedule/schedule-appengine/src/test/java/com/jasify/schedule/appengine/model/activity/ActivityServiceTest.java b/schedule/schedule-appengine/src/test/java/com/jasify/schedule/appengine/model/activity/ActivityServiceTest.java index 1c92d452..905a1b1d 100644 --- a/schedule/schedule-appengine/src/test/java/com/jasify/schedule/appengine/model/activity/ActivityServiceTest.java +++ b/schedule/schedule-appengine/src/test/java/com/jasify/schedule/appengine/model/activity/ActivityServiceTest.java @@ -111,7 +111,7 @@ public void testSubscribe() throws Exception { assertNotNull(subscription); assertEquals(testUser1.getId(), subscription.getUserRef().getKey()); assertEquals(activity.getId(), subscription.getActivityRef().getKey()); - assertEquals(1, activity.getSubscriptionCount()); + assertEquals(1, Datastore.get(Activity.class, activity.getId()).getSubscriptionCount()); List modelList = activity.getSubscriptionListRef().getModelList(); assertEquals(1, modelList.size()); assertEquals(subscription.getId(), modelList.get(0).getId());