Skip to main content
summaryrefslogtreecommitdiffstats
blob: 13ca73931d502c65e061fd3c0ce7640010e38f4e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*******************************************************************************
 * Copyright (c) 2013 Boeing.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Boeing - initial API and implementation
 *******************************************************************************/
package org.eclipse.osee.ats.core.internal.column.ev;

import static org.mockito.Mockito.when;
import org.eclipse.osee.ats.api.IAtsWorkItem;
import org.eclipse.osee.ats.api.ev.IAtsEarnedValueService;
import org.eclipse.osee.ats.api.ev.IAtsEarnedValueServiceProvider;
import org.eclipse.osee.ats.api.ev.IAtsWorkPackage;
import org.eclipse.osee.ats.core.column.IAtsColumn;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.junit.Before;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

/**
 * @author Donald G. Dunne
 */
public abstract class AbstractWorkPackageUtilityTest {

   // @formatter:off
   @Mock protected IAtsEarnedValueServiceProvider earnedValueServiceProvider;
   @Mock protected IAtsEarnedValueService earnedValueService;
   @Mock protected IAtsWorkItem workItem;
   @Mock protected IAtsWorkPackage workPkg;
   // @formatter:on

   @Before
   public void setup() throws OseeCoreException {
      MockitoAnnotations.initMocks(this);
      when(earnedValueServiceProvider.getEarnedValueService()).thenReturn(earnedValueService);
      when(earnedValueService.getWorkPackage(workItem)).thenReturn(workPkg);
   }

   public abstract IAtsColumn getUtil();

}

Back to the top