Skip to content

Commit

Permalink
Fix social impl junit test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cnapagoda committed Mar 12, 2015
1 parent 64c4c25 commit 6e8c14e
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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");
Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 6e8c14e

Please sign in to comment.