blob: 4d97e0127852be2a903f3bd98d97cf8687ec02e4 (
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.column.IAtsColumn;
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.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();
}
|