Exemplo n.º 1
0
  private void store_createMockStoryBusiness() {
    this.storyBusiness =
        new StoryBusinessImpl() {
          @Override
          public void moveStoryAway(Story story, Backlog backlog) {
            storyBacklogUpdated = true;
          }

          //            @Override
          //            public void updateStoryPriority(Story story, int insertAtPriority) {
          //                storyPriorityUpdated = true;
          //            }
        };
    backlogBusiness = createMock(BacklogBusiness.class);
    storyBusiness.setBacklogBusiness(backlogBusiness);

    storyDAO = createMock(StoryDAO.class);
    storyBusiness.setStoryDAO(storyDAO);

    userDAO = createMock(UserDAO.class);
    storyBusiness.setUserDAO(userDAO);

    iterationBusiness = createMock(IterationHistoryEntryBusiness.class);
    storyBusiness.setIterationHistoryEntryBusiness(iterationBusiness);

    blheBusiness = createMock(BacklogHistoryEntryBusiness.class);
    storyBusiness.setBacklogHistoryEntryBusiness(blheBusiness);
  }
Exemplo n.º 2
0
  @Before
  public void setUp_dependencies() {
    storyBusiness = new StoryBusinessImpl();

    backlogBusiness = createMock(BacklogBusiness.class);
    storyBusiness.setBacklogBusiness(backlogBusiness);

    storyDAO = createMock(StoryDAO.class);
    storyBusiness.setStoryDAO(storyDAO);

    iterationDAO = createMock(IterationDAO.class);
    storyBusiness.setIterationDAO(iterationDAO);

    userDAO = createMock(UserDAO.class);
    storyBusiness.setUserDAO(userDAO);

    blheBusiness = createMock(BacklogHistoryEntryBusiness.class);
    storyBusiness.setBacklogHistoryEntryBusiness(blheBusiness);

    iheBusiness = createMock(IterationHistoryEntryBusiness.class);
    storyBusiness.setIterationHistoryEntryBusiness(iheBusiness);

    storyRankBusiness = createMock(StoryRankBusiness.class);
    storyBusiness.setStoryRankBusiness(storyRankBusiness);

    transferObjectBusiness = createMock(TransferObjectBusiness.class);
    storyBusiness.setTransferObjectBusiness(transferObjectBusiness);

    hourEntryDAO = createMock(HourEntryDAO.class);
    storyBusiness.setHourEntryDAO(hourEntryDAO);

    taskBusiness = createMock(TaskBusiness.class);
    storyBusiness.setTaskBusiness(taskBusiness);

    hourEntryBusiness = createMock(HourEntryBusiness.class);
    storyBusiness.setHourEntryBusiness(hourEntryBusiness);

    storyHierarchyBusiness = createMock(StoryHierarchyBusiness.class);
    storyBusiness.setStoryHierarchyBusiness(storyHierarchyBusiness);
  }