Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjphillips2010-07-21 10:14:14 -0400
committerjphillips2010-07-21 10:14:14 -0400
commite989c4b0539214b3792b1bcd0b17a5721c48aab1 (patch)
tree808f41a158ee2f01f370a93856e1eb2435ee117a /plugins/org.eclipse.osee.framework.access.test
parent6e5ef23353be1c4e957718a866e996c04097a0e1 (diff)
downloadorg.eclipse.osee-e989c4b0539214b3792b1bcd0b17a5721c48aab1.tar.gz
org.eclipse.osee-e989c4b0539214b3792b1bcd0b17a5721c48aab1.tar.xz
org.eclipse.osee-e989c4b0539214b3792b1bcd0b17a5721c48aab1.zip
Added generics to AccessCollector class
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/AccessCollectorTest.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessCollectorTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessCollectorTest.java
index fadc0a8722..805ec706e5 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessCollectorTest.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/AccessCollectorTest.java
@@ -45,14 +45,14 @@ public class AccessCollectorTest {
filters.add(phoneTypeFilter);
filters.add(wordTypeFilter);
- AccessCollector collector = new AccessCollector(filters);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ AccessCollector<IAttributeType> collector = new AccessCollector<IAttributeType>(filters);
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.WRITE).size() == 1);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.READ).size() == 2);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.DENY).isEmpty());
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.FULLACCESS).isEmpty());
}
@@ -71,14 +71,14 @@ public class AccessCollectorTest {
filters.add(phoneTypeFilter);
filters.add(wordTypeFilter);
- AccessCollector collector = new AccessCollector(filters);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ AccessCollector<IAttributeType> collector = new AccessCollector<IAttributeType>(filters);
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.WRITE).size() == 1);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.READ).size() == 2);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.DENY).isEmpty());
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.FULLACCESS).isEmpty());
}
@@ -96,13 +96,13 @@ public class AccessCollectorTest {
filters.add(branchAccessFilter);
AccessCollector collector = new AccessCollector(filters);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.WRITE).size() == 2);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.READ).size() == 2);
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.DENY).isEmpty());
- Assert.assertTrue(collector.getAttributeTypes(basicArtifact, Arrays.asList(wordAttrType, phoneType),
+ Assert.assertTrue(collector.getAttributeTypesToMatch(basicArtifact, Arrays.asList(wordAttrType, phoneType),
PermissionEnum.FULLACCESS).isEmpty());
}
}

Back to the top