1 package org.tigris.scarab.tools; 2 3 48 49 import java.util.List ; 50 51 import org.tigris.scarab.om.Activity; 52 import org.tigris.scarab.om.ActivitySet; 53 import org.tigris.scarab.om.Issue; 54 import org.tigris.scarab.test.BaseScarabTestCase; 55 import org.tigris.scarab.test.mocks.MockScarabLocalizationTool; 56 57 63 public class ScarabToolManagerTest extends BaseScarabTestCase 64 { 65 66 67 public void testScarabToolManager() throws Exception 68 { 69 Issue issue = this.getIssue0(); 70 List allActivities = issue.getActivity(true); 71 assertTrue(allActivities.size()>0); 72 Activity activity = (Activity)allActivities.get(0); 73 ActivitySet activitySet = activity.getActivitySet(); 74 assertNotNull(activitySet); 75 76 77 ScarabToolManager stm = new ScarabToolManager(new MockScarabLocalizationTool()); 78 79 String reason = stm.getActivityReason(activitySet,activity); 80 assertEquals("InitialEntry",reason); 81 } 82 } 83 | Popular Tags |