@Before
  public void initMocks() throws Exception {
    EasyMockAnnotations.initMocks(this);

    issueGenericValue =
        createIssueGV(
            ISSUE_ID, PROJECT_ID, "Test issue", "Test-1", "Test Assignee", "Test Resolution");
    MockGenericValue attachmentGV = new MockGenericValue("Attachment");
    attachment = new Attachment(null, attachmentGV, null);
  }
 @Before
 public void setUp() {
   EasyMockAnnotations.initMocks(this);
   groupPickerResourceHelper =
       new GroupPickerResourceHelperImpl(
           groupPickerSearchService,
           authenticationContext,
           applicationProperties,
           permissionManager);
   matchingGroups = Lists.newArrayList();
   i18nHelper = new NoopI18nHelper();
 }
Exemplo n.º 3
0
 @Before
 public final void setUpMockAnnotations() throws Exception {
   EasyMockAnnotations.initMocks(this, new MockControllerFactory());
   componentAccessorWorker = new MockComponentWorker();
   ComponentAccessor.initialiseWorker(componentAccessorWorker);
 }