Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-07-24 04:02:08 -0400
committerrbrooks2010-07-24 04:02:08 -0400
commit4ed8bddc791fda93940f238c5135556a07041dc0 (patch)
tree64a118285c5006c3a38320dbb2d374e8ea72a061 /plugins/org.eclipse.osee.framework.access.test
parent542cc7344d3f129d64e47f547384297c8e1b1f43 (diff)
downloadorg.eclipse.osee-4ed8bddc791fda93940f238c5135556a07041dc0.tar.gz
org.eclipse.osee-4ed8bddc791fda93940f238c5135556a07041dc0.tar.xz
org.eclipse.osee-4ed8bddc791fda93940f238c5135556a07041dc0.zip
converted all line terminators to unix style
Diffstat (limited to 'plugins/org.eclipse.osee.framework.access.test')
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/.classpath14
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/.project56
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/build.properties8
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/AllAccessTestSuite.java26
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessDataTest.java236
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/InternalAccessTestSuite.java24
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/MockAccessCheckProvider.java26
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperation.java42
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperationTest.java112
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java46
10 files changed, 295 insertions, 295 deletions
diff --git a/plugins/org.eclipse.osee.framework.access.test/.classpath b/plugins/org.eclipse.osee.framework.access.test/.classpath
index 8a8f1668cd..ad32c83a78 100644
--- a/plugins/org.eclipse.osee.framework.access.test/.classpath
+++ b/plugins/org.eclipse.osee.framework.access.test/.classpath
@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.osee.framework.access.test/.project b/plugins/org.eclipse.osee.framework.access.test/.project
index 088cac150f..927ef25dda 100644
--- a/plugins/org.eclipse.osee.framework.access.test/.project
+++ b/plugins/org.eclipse.osee.framework.access.test/.project
@@ -1,28 +1,28 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.osee.framework.access.test</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.osee.framework.access.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/org.eclipse.osee.framework.access.test/build.properties b/plugins/org.eclipse.osee.framework.access.test/build.properties
index 41eb6ade2b..34d2e4d2da 100644
--- a/plugins/org.eclipse.osee.framework.access.test/build.properties
+++ b/plugins/org.eclipse.osee.framework.access.test/build.properties
@@ -1,4 +1,4 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/AllAccessTestSuite.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/AllAccessTestSuite.java
index c18a774439..f7048614ec 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/AllAccessTestSuite.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/AllAccessTestSuite.java
@@ -8,16 +8,16 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.access.test;
-
-import org.eclipse.osee.framework.access.test.internal.InternalAccessTestSuite;
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses( { //
-InternalAccessTestSuite.class, //
-})
-public class AllAccessTestSuite {
-
-}
+package org.eclipse.osee.framework.access.test;
+
+import org.eclipse.osee.framework.access.test.internal.InternalAccessTestSuite;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses( { //
+InternalAccessTestSuite.class, //
+})
+public class AllAccessTestSuite {
+
+}
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessDataTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessDataTest.java
index 8423a15ca2..cca73fa5bc 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessDataTest.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessDataTest.java
@@ -1,118 +1,118 @@
-/*******************************************************************************
- * 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 org.eclipse.osee.framework.core.model.access.AccessData;
-import org.junit.Ignore;
-import org.junit.Test;
-
-/**
- * Test Case for {@link AccessData}
- *
- * @author Jeff C. Phillips
- */
-public class AccessDataTest {
-
- @Ignore
- @Test
- public void testObjectBase() {
- }
-
- // @Test
- // public void testObjectBase() {
- // AccessData accessData = new AccessData();
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
- //
- // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "Name2");
- // accessData.add(basicArtifact2, PermissionEnum.WRITE);
- // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
- // accessData.add(basicArtifact, PermissionEnum.READ);
- //
- // Assert.assertTrue(accessData.matchesAll(PermissionEnum.READ));
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.WRITE));
- // }
- //
- // @Test
- // public void testObjectBaseDeny() {
- // AccessData accessData = new AccessData();
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
- //
- // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "Name2");
- // accessData.add(basicArtifact2, PermissionEnum.DENY);
- // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
- // accessData.add(basicArtifact, PermissionEnum.READ);
- //
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
- // }
- //
- // @Test
- // public void testAttributeTypeFilter() {
- // AccessData accessData = new AccessData();
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
- //
- // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
- // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "Name Two");
- // accessData.add(basicArtifact, CoreAttributeTypes.WORD_TEMPLATE_CONTENT, PermissionEnum.READ);
- // accessData.add(basicArtifact2, CoreAttributeTypes.WORD_TEMPLATE_CONTENT, PermissionEnum.WRITE);
- //
- // Assert.assertTrue(!accessData.getAttributeTypeMatches(basicArtifact, CoreAttributeTypes.WORD_TEMPLATE_CONTENT,
- // PermissionEnum.READ).isEmpty());
- // Assert.assertTrue(accessData.getAttributeTypeMatches(basicArtifact, CoreAttributeTypes.WORD_TEMPLATE_CONTENT,
- // PermissionEnum.WRITE).isEmpty());
- // Assert.assertTrue(accessData.matchesAll(PermissionEnum.READ));
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.WRITE));
- // }
- //
- // @Test
- // public void testArtifactTypeFilter() {
- // AccessData accessData = new AccessData();
- // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
- //
- // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
- // accessData.add(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ);
- // Assert.assertTrue(!accessData.getArtifactTypeMatches(basicArtifact,
- // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
- // Assert.assertTrue(accessData.getArtifactTypeMatches(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement,
- // PermissionEnum.WRITE).isEmpty());
- // }
- //
- // @Test
- // public void testMerge() {
- // AccessData mainAccessData = new AccessData();
- // AccessData subAccessData = new AccessData();
- //
- // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
- // mainAccessData.add(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ);
- // subAccessData.add(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.WRITE);
- // mainAccessData.merge(subAccessData);
- //
- // Assert.assertTrue(!mainAccessData.getArtifactTypeMatches(basicArtifact,
- // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
- //
- // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "NameTwo");
- // mainAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.WRITE);
- // subAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ);
- //
- // mainAccessData.merge(subAccessData);
- //
- // Assert.assertTrue(!mainAccessData.getArtifactTypeMatches(basicArtifact2,
- // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
- //
- // mainAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.WRITE);
- // subAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.DENY);
- //
- // mainAccessData.merge(subAccessData);
- //
- // Assert.assertFalse(!mainAccessData.getArtifactTypeMatches(basicArtifact2,
- // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
- // }
-
-}
+/*******************************************************************************
+ * 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 org.eclipse.osee.framework.core.model.access.AccessData;
+import org.junit.Ignore;
+import org.junit.Test;
+
+/**
+ * Test Case for {@link AccessData}
+ *
+ * @author Jeff C. Phillips
+ */
+public class AccessDataTest {
+
+ @Ignore
+ @Test
+ public void testObjectBase() {
+ }
+
+ // @Test
+ // public void testObjectBase() {
+ // AccessData accessData = new AccessData();
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
+ //
+ // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "Name2");
+ // accessData.add(basicArtifact2, PermissionEnum.WRITE);
+ // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
+ // accessData.add(basicArtifact, PermissionEnum.READ);
+ //
+ // Assert.assertTrue(accessData.matchesAll(PermissionEnum.READ));
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.WRITE));
+ // }
+ //
+ // @Test
+ // public void testObjectBaseDeny() {
+ // AccessData accessData = new AccessData();
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
+ //
+ // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "Name2");
+ // accessData.add(basicArtifact2, PermissionEnum.DENY);
+ // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
+ // accessData.add(basicArtifact, PermissionEnum.READ);
+ //
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
+ // }
+ //
+ // @Test
+ // public void testAttributeTypeFilter() {
+ // AccessData accessData = new AccessData();
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
+ //
+ // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
+ // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "Name Two");
+ // accessData.add(basicArtifact, CoreAttributeTypes.WORD_TEMPLATE_CONTENT, PermissionEnum.READ);
+ // accessData.add(basicArtifact2, CoreAttributeTypes.WORD_TEMPLATE_CONTENT, PermissionEnum.WRITE);
+ //
+ // Assert.assertTrue(!accessData.getAttributeTypeMatches(basicArtifact, CoreAttributeTypes.WORD_TEMPLATE_CONTENT,
+ // PermissionEnum.READ).isEmpty());
+ // Assert.assertTrue(accessData.getAttributeTypeMatches(basicArtifact, CoreAttributeTypes.WORD_TEMPLATE_CONTENT,
+ // PermissionEnum.WRITE).isEmpty());
+ // Assert.assertTrue(accessData.matchesAll(PermissionEnum.READ));
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.WRITE));
+ // }
+ //
+ // @Test
+ // public void testArtifactTypeFilter() {
+ // AccessData accessData = new AccessData();
+ // Assert.assertFalse(accessData.matchesAll(PermissionEnum.READ));
+ //
+ // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
+ // accessData.add(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ);
+ // Assert.assertTrue(!accessData.getArtifactTypeMatches(basicArtifact,
+ // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
+ // Assert.assertTrue(accessData.getArtifactTypeMatches(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement,
+ // PermissionEnum.WRITE).isEmpty());
+ // }
+ //
+ // @Test
+ // public void testMerge() {
+ // AccessData mainAccessData = new AccessData();
+ // AccessData subAccessData = new AccessData();
+ //
+ // IBasicArtifact<?> basicArtifact = new DefaultBasicArtifact(1, "1", "Name");
+ // mainAccessData.add(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ);
+ // subAccessData.add(basicArtifact, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.WRITE);
+ // mainAccessData.merge(subAccessData);
+ //
+ // Assert.assertTrue(!mainAccessData.getArtifactTypeMatches(basicArtifact,
+ // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
+ //
+ // IBasicArtifact<?> basicArtifact2 = new DefaultBasicArtifact(2, "2", "NameTwo");
+ // mainAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.WRITE);
+ // subAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ);
+ //
+ // mainAccessData.merge(subAccessData);
+ //
+ // Assert.assertTrue(!mainAccessData.getArtifactTypeMatches(basicArtifact2,
+ // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
+ //
+ // mainAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.WRITE);
+ // subAccessData.add(basicArtifact2, CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.DENY);
+ //
+ // mainAccessData.merge(subAccessData);
+ //
+ // Assert.assertFalse(!mainAccessData.getArtifactTypeMatches(basicArtifact2,
+ // CoreArtifactTypes.AbstractSoftwareRequirement, PermissionEnum.READ).isEmpty());
+ // }
+
+}
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 7a420d7240..85c246eae7 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
@@ -8,15 +8,15 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.access.test.internal;
-
-import org.junit.runner.RunWith;
-import org.junit.runners.Suite;
-
-@RunWith(Suite.class)
-@Suite.SuiteClasses({ //
-OnEditOperationTest.class, //
-})
-public class InternalAccessTestSuite {
-
-}
+package org.eclipse.osee.framework.access.test.internal;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+
+@RunWith(Suite.class)
+@Suite.SuiteClasses({ //
+OnEditOperationTest.class, //
+})
+public class InternalAccessTestSuite {
+
+}
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/MockAccessCheckProvider.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/MockAccessCheckProvider.java
index 0487efa4b4..e818b000a3 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/MockAccessCheckProvider.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/MockAccessCheckProvider.java
@@ -8,16 +8,16 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.access.test.internal;
-
-import org.eclipse.osee.framework.core.model.IBasicArtifact;
-import org.eclipse.osee.framework.lifecycle.IAccessCheckProvider;
-
-public class MockAccessCheckProvider implements IAccessCheckProvider {
-
- @Override
- public boolean canEdit(IBasicArtifact<?> user, IBasicArtifact<?> artTcheck) {
- return false;
- }
-
-}
+package org.eclipse.osee.framework.access.test.internal;
+
+import org.eclipse.osee.framework.core.model.IBasicArtifact;
+import org.eclipse.osee.framework.lifecycle.IAccessCheckProvider;
+
+public class MockAccessCheckProvider implements IAccessCheckProvider {
+
+ @Override
+ public boolean canEdit(IBasicArtifact<?> user, IBasicArtifact<?> artTcheck) {
+ return false;
+ }
+
+}
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
index 43ccaa33c8..b6f136fa98 100644
--- 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
@@ -8,24 +8,24 @@
* 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 ...");
- }
-
-}
+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
index 72d57325e9..badda05d02 100644
--- 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
@@ -1,56 +1,56 @@
-/*******************************************************************************
- * 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.exception.OseeCoreException;
-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.operation.LogProgressMonitor;
-import org.eclipse.osee.framework.core.operation.Operations;
-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() throws OseeCoreException {
- 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 op = new OnEditOperation(service, user, artsToChk);
- Operations.executeWork(op, new LogProgressMonitor(), -1.0);
-
- IStatus status = op.getStatus();
- Assert.assertTrue(status.isOK());
-
- }
-}
+/*******************************************************************************
+ * 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.exception.OseeCoreException;
+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.operation.LogProgressMonitor;
+import org.eclipse.osee.framework.core.operation.Operations;
+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() throws OseeCoreException {
+ 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 op = new OnEditOperation(service, user, artsToChk);
+ Operations.executeWork(op, new LogProgressMonitor(), -1.0);
+
+ IStatus status = op.getStatus();
+ Assert.assertTrue(status.isOK());
+
+ }
+}
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java
index c6822fcad6..71137a2414 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/PermissionTest.java
@@ -8,26 +8,26 @@
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
-package org.eclipse.osee.framework.access.test.internal;
-
-import org.eclipse.osee.framework.core.enums.PermissionEnum;
-
-public class PermissionTest {
-
- public void main(String[] args) {
- PermissionEnum[] a = {PermissionEnum.DENY, PermissionEnum.FULLACCESS, null};
- PermissionEnum[] b = {PermissionEnum.LOCK, PermissionEnum.FULLACCESS, null};
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 3; j++) {
- PermissionEnum branchPermission = a[i];
- PermissionEnum userPermission = b[j];
- if (branchPermission == PermissionEnum.DENY || userPermission == null) {
- System.out.print("T");
- } else {
- System.out.print("F");
- }
- }
- System.out.println();
- }
- }
-}
+package org.eclipse.osee.framework.access.test.internal;
+
+import org.eclipse.osee.framework.core.enums.PermissionEnum;
+
+public class PermissionTest {
+
+ public void main(String[] args) {
+ PermissionEnum[] a = {PermissionEnum.DENY, PermissionEnum.FULLACCESS, null};
+ PermissionEnum[] b = {PermissionEnum.LOCK, PermissionEnum.FULLACCESS, null};
+ for (int i = 0; i < 3; i++) {
+ for (int j = 0; j < 3; j++) {
+ PermissionEnum branchPermission = a[i];
+ PermissionEnum userPermission = b[j];
+ if (branchPermission == PermissionEnum.DENY || userPermission == null) {
+ System.out.print("T");
+ } else {
+ System.out.print("F");
+ }
+ }
+ System.out.println();
+ }
+ }
+}

Back to the top