Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrescobar2011-05-13 20:03:10 -0400
committerRyan D. Brooks2011-05-13 20:03:10 -0400
commitf000da0830d2da4b18efbca3cb1843657cf43bc1 (patch)
tree2d6deba7b22e558035e7bb4093f6f91f15dd2f7c /plugins/org.eclipse.osee.framework.access.test
parenta128581bcf59c07e65fe13d37d26e1d9da4bcbb6 (diff)
downloadorg.eclipse.osee-f000da0830d2da4b18efbca3cb1843657cf43bc1.tar.gz
org.eclipse.osee-f000da0830d2da4b18efbca3cb1843657cf43bc1.tar.xz
org.eclipse.osee-f000da0830d2da4b18efbca3cb1843657cf43bc1.zip
feature[ats_YGHW1]: SkynetTransaction Access Check Cleanup
Consolidate SkynetTransaction API Move AccessControl checks to transaction add methods
Diffstat (limited to 'plugins/org.eclipse.osee.framework.access.test')
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/InternalAccessTestSuite.java1
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperation.java31
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperationTest.java50
3 files changed, 0 insertions, 82 deletions
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/InternalAccessTestSuite.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/InternalAccessTestSuite.java
index f4eaa6b174..09725f7cd8 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/InternalAccessTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/InternalAccessTestSuite.java
@@ -19,7 +19,6 @@ import org.junit.runners.Suite;
@RunWith(Suite.class)
@Suite.SuiteClasses({ //
CmAccessTestSuite.class, //
- OnEditOperationTest.class, //
})
public class InternalAccessTestSuite {
@BeforeClass
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperation.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperation.java
deleted file mode 100644
index b6f136fa98..0000000000
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperation.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2010 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.framework.access.test.internal;
-
-import java.util.Collection;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleOperation;
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionCheckPoint;
-
-public class OnEditOperation extends AbstractLifecycleOperation {
-
- public OnEditOperation(ILifecycleService service, IBasicArtifact<?> userArtifact, Collection<IBasicArtifact<?>> artsToCheck) {
- super(service, new SkynetTransactionCheckPoint(userArtifact, artsToCheck), "On Edit Op", "TestBundle");
- }
-
- @Override
- protected void doCoreWork(IProgressMonitor monitor) throws Exception {
- System.out.println("I am going to do some edit ...");
- }
-
-}
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperationTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperationTest.java
deleted file mode 100644
index e8e2504d9c..0000000000
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperationTest.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 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.framework.access.test.internal;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.osee.framework.core.model.DefaultBasicArtifact;
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.core.operation.IOperation;
-import org.eclipse.osee.framework.core.test.mocks.Asserts;
-import org.eclipse.osee.framework.lifecycle.AbstractLifecycleOperation;
-import org.eclipse.osee.framework.lifecycle.ILifecycleService;
-import org.eclipse.osee.framework.lifecycle.LifecycleServiceImpl;
-import org.eclipse.osee.framework.skynet.core.transaction.SkynetTransactionCheckPoint;
-import org.junit.Assert;
-import org.junit.Test;
-
-/**
- * Test Case for {@link AbstractLifecycleOperation}
- *
- * @author Roberto E. Escobar
- * @author Jeff C. Phillips
- */
-public class OnEditOperationTest {
-
- @Test
- public void testOperation() {
- ILifecycleService service = new LifecycleServiceImpl();
-
- // service.addHandler(ChangeMgmtChkPoint.TYPE, new ChangeMgmtHandler(new MockAccessCheckProvider()));
-
- Assert.assertEquals(1, service.getHandlerCount(SkynetTransactionCheckPoint.TYPE));
- Assert.assertFalse(service.getHandlerTypes().isEmpty());
-
- IBasicArtifact<?> user = new DefaultBasicArtifact(0, "1", "user");
- List<IBasicArtifact<?>> artsToChk = new ArrayList<IBasicArtifact<?>>();
- artsToChk.add(new DefaultBasicArtifact(1, "2", "check me out"));
- IOperation operation = new OnEditOperation(service, user, artsToChk);
- Asserts.testOperation(operation, IStatus.OK);
- }
-}

Back to the top