diff --git a/components/registry/org.wso2.carbon.registry.social.impl/src/test/java/org/wso2/carbon/registry/social/impl/test/activity/ActivityManagerImplTest.java b/components/registry/org.wso2.carbon.registry.social.impl/src/test/java/org/wso2/carbon/registry/social/impl/test/activity/ActivityManagerImplTest.java index 14361f017..9474c5b6f 100644 --- a/components/registry/org.wso2.carbon.registry.social.impl/src/test/java/org/wso2/carbon/registry/social/impl/test/activity/ActivityManagerImplTest.java +++ b/components/registry/org.wso2.carbon.registry.social.impl/src/test/java/org/wso2/carbon/registry/social/impl/test/activity/ActivityManagerImplTest.java @@ -77,7 +77,7 @@ public void setUp() throws RegistryException { } } - public void testCreateActivity() throws Exception { + public void test1CreateActivity() throws Exception { ActivityManagerImpl manager = new ActivityManagerImpl(); manager.setRegistry(registry); Activity activity1 = new ActivityImpl(); @@ -121,7 +121,7 @@ public void testCreateActivity() throws Exception { assertEquals("Adding GadgetYYY",activities[1].getTitle()); } - public void testDeleteActivity() throws Exception { + public void test2DeleteActivity() throws Exception { ActivityManagerImpl manager = new ActivityManagerImpl(); manager.setRegistry(registry); Activity activity1 = new ActivityImpl(); @@ -151,7 +151,7 @@ public void testUpdateActivity() throws Exception { Activity activity2 = manager.getActivity("userX", "self", "5", null, "4"); assertNotNull(activity2); assertEquals("userX", activity2.getUserId()); - assertTrue("Adding Gadget".equals(activity2.getTitle())); + assertEquals("Adding Gadget", activity2.getTitle()); activity1.setTitle("New Comment added"); manager.updateActivity("userX", activity1); activity2 = manager.getActivity("userX", "self", "5", null, "4"); @@ -161,7 +161,7 @@ public void testUpdateActivity() throws Exception { } - public void testGetActivities() throws Exception { + public void test3GetActivities() throws Exception { ActivityManagerImpl manager = new ActivityManagerImpl(); manager.setRegistry(registry); Activity activity1 = new ActivityImpl(); @@ -198,7 +198,7 @@ public void testGetActivities() throws Exception { } - public void testGetActivities2() throws Exception { + public void test4GetActivities2() throws Exception { ActivityManagerImpl manager = new ActivityManagerImpl(); manager.setRegistry(registry); Activity activity1 = new ActivityImpl(); @@ -233,7 +233,7 @@ public void testGetActivities2() throws Exception { } - public void testDeleteActivities() throws Exception { + public void test5DeleteActivities() throws Exception { ActivityManagerImpl manager = new ActivityManagerImpl(); manager.setRegistry(registry); Activity activity1 = new ActivityImpl();