blob: aa4c60187b6aba612a9182949f701d16b70a6516 (
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
|
/*******************************************************************************
* 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.client.integration.tests.ats.actions;
import org.junit.Assert;
import org.eclipse.osee.ats.actions.ResourceHistoryAction;
import org.eclipse.osee.ats.api.data.AtsRelationTypes;
import org.eclipse.osee.ats.client.integration.tests.AtsClientService;
import org.eclipse.osee.ats.client.integration.tests.ats.core.client.AtsTestUtil;
import org.eclipse.osee.framework.jdk.core.type.OseeCoreException;
import org.eclipse.osee.framework.logging.SevereLoggingMonitor;
import org.eclipse.osee.support.test.util.TestUtil;
import org.junit.Test;
/**
* @author Donald G. Dunne
*/
public class ResourceHistoryActionTest extends AbstractAtsActionTest {
@Test
public void test() throws Exception {
SevereLoggingMonitor monitor = TestUtil.severeLoggingStart();
AtsTestUtil.cleanupAndReset(getClass().getSimpleName());
Assert.assertFalse(AtsClientService.get().getUserAdmin().getCurrentOseeUser().getRelatedArtifacts(
AtsRelationTypes.FavoriteUser_Artifact).contains(AtsTestUtil.getTeamWf()));
ResourceHistoryAction action = createAction();
action.runWithException();
TestUtil.severeLoggingEnd(monitor);
}
@Override
public ResourceHistoryAction createAction() throws OseeCoreException {
return new ResourceHistoryAction(AtsTestUtil.getTeamWf());
}
}
|