Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-07-24 13:38:31 -0400
committerrbrooks2010-07-24 13:38:31 -0400
commit4081f04850d3eff9eb1bd7241763707bfbb43a45 (patch)
tree258620df94d4b24077ff103a6c4dea9cb78493fb /plugins/org.eclipse.osee.framework.access.test
parent4ed8bddc791fda93940f238c5135556a07041dc0 (diff)
downloadorg.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.tar.gz
org.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.tar.xz
org.eclipse.osee-4081f04850d3eff9eb1bd7241763707bfbb43a45.zip
applied Eclipse source cleanup
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/AllAccessTestSuite.java2
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessDataTest.java184
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessFilterChainTest.java2
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/OnEditOperationTest.java4
4 files changed, 96 insertions, 96 deletions
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 f7048614ec..f02a12339b 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
@@ -15,7 +15,7 @@ import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@RunWith(Suite.class)
-@Suite.SuiteClasses( { //
+@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 cca73fa5bc..7039e64984 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
@@ -21,98 +21,98 @@ import org.junit.Test;
*/
public class AccessDataTest {
- @Ignore
- @Test
- public void testObjectBase() {
- }
+ @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());
- // }
+ // @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/AccessFilterChainTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessFilterChainTest.java
index 3e78f04042..a132582c1a 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessFilterChainTest.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessFilterChainTest.java
@@ -24,7 +24,7 @@ import org.junit.Test;
/**
* Test Case for {@link AccessFilterChain}
- *
+ *
* @author Jeff C. Phillips
*/
public class AccessFilterChainTest {
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 badda05d02..89c7a5f7d9 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
@@ -28,7 +28,7 @@ import org.junit.Test;
/**
* Test Case for {@link AbstractLifecycleOperation}
- *
+ *
* @author Roberto E. Escobar
* @author Jeff C. Phillips
*/
@@ -38,7 +38,7 @@ public class OnEditOperationTest {
public void testOperation() throws OseeCoreException {
ILifecycleService service = new LifecycleServiceImpl();
-// service.addHandler(ChangeMgmtChkPoint.TYPE, new ChangeMgmtHandler(new MockAccessCheckProvider()));
+ // service.addHandler(ChangeMgmtChkPoint.TYPE, new ChangeMgmtHandler(new MockAccessCheckProvider()));
Assert.assertEquals(1, service.getHandlerCount(SkynetTransactionCheckPoint.TYPE));
Assert.assertFalse(service.getHandlerTypes().isEmpty());

Back to the top