Skip to main content
summaryrefslogtreecommitdiffstats
blob: 7ed9179f7164c415a60566c99b98ba3f009f856f (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
/*
 * Created on Oct 24, 2011
 *
 * PLACE_YOUR_DISTRIBUTION_STATEMENT_RIGHT_HERE
 */
package org.eclipse.osee.ats.actions;

import org.eclipse.osee.ats.core.AtsTestUtil;
import org.eclipse.osee.ats.core.type.AtsRelationTypes;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.exception.OseeStateException;
import org.junit.Test;

/**
 * @author Donald G. Dunne
 */
public class OpenInAtsWorldActionTest extends AbstractAtsActionRunTest {

   @Override
   public OpenInAtsWorldAction createAction() throws OseeCoreException {
      return new OpenInAtsWorldAction(AtsTestUtil.getTeamWf());
   }

   @Test(expected = OseeStateException.class)
   public void testNoParentAction() throws OseeCoreException {
      AtsTestUtil.getTeamWf().deleteRelations(AtsRelationTypes.ActionToWorkflow_Action);
      AtsTestUtil.getTeamWf().persist(getClass().getSimpleName());

      OpenInAtsWorldAction action = createAction();
      action.runWithException();
   }

}

Back to the top