Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-04-14 15:54:15 -0400
committerRyan D. Brooks2011-04-14 15:54:15 -0400
commit3cd8f4cef125734e2d1a99039143ffbb07d7221c (patch)
tree7212d5993a4c3539d43ec307698d93776efe2a92 /plugins/org.eclipse.osee.framework.access.test
parenta4a4ecaee85f8549b61500c15154938ed61f2da5 (diff)
downloadorg.eclipse.osee-3cd8f4cef125734e2d1a99039143ffbb07d7221c.tar.gz
org.eclipse.osee-3cd8f4cef125734e2d1a99039143ffbb07d7221c.tar.xz
org.eclipse.osee-3cd8f4cef125734e2d1a99039143ffbb07d7221c.zip
feature[ats_YGHW1]: Block changes to requirements unless done under an appropriate action
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/cm/CmAccessProviderTest.java8
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java4
-rw-r--r--plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagement.java8
3 files changed, 10 insertions, 10 deletions
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/cm/CmAccessProviderTest.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/cm/CmAccessProviderTest.java
index 899e9431fd..9ae342baf6 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/cm/CmAccessProviderTest.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/internal/cm/CmAccessProviderTest.java
@@ -17,7 +17,7 @@ import org.eclipse.osee.framework.access.IAccessProvider;
import org.eclipse.osee.framework.access.internal.cm.CmAccessProvider;
import org.eclipse.osee.framework.access.test.mocks.MockCMWithAccessModel;
import org.eclipse.osee.framework.access.test.mocks.MockConfigurationManagementProvider;
-import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.IAccessContextId;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.IBasicArtifact;
import org.eclipse.osee.framework.core.model.access.AccessData;
@@ -37,7 +37,7 @@ import org.junit.Test;
public class CmAccessProviderTest {
private static IBasicArtifact<?> expectedUser;
private static Object expectedObject;
- private static AccessContextId contextId1;
+ private static IAccessContextId contextId1;
@BeforeClass
public static void setup() {
@@ -83,12 +83,12 @@ public class CmAccessProviderTest {
private final class MockAccessModel implements AccessModel {
protected boolean wasComputeAccessCalled;
- protected AccessContextId contextId;
+ protected IAccessContextId contextId;
protected Collection<Object> objectsToCheck;
protected AccessData accessData;
@Override
- public void computeAccess(AccessContextId contextId, Collection<Object> objectsToCheck, AccessData accessData) {
+ public void computeAccess(IAccessContextId contextId, Collection<Object> objectsToCheck, AccessData accessData) {
wasComputeAccessCalled = true;
this.contextId = contextId;
this.objectsToCheck = objectsToCheck;
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java
index 28bd3b08a8..67a17e59ef 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockCMWithAccessModel.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.framework.access.test.mocks;
import java.util.Collection;
-import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.IAccessContextId;
import org.eclipse.osee.framework.core.model.IBasicArtifact;
import org.eclipse.osee.framework.core.model.access.AccessModel;
import org.eclipse.osee.framework.core.model.access.HasAccessModel;
@@ -24,7 +24,7 @@ public final class MockCMWithAccessModel extends MockConfigurationManagement imp
private final AccessModel accessModel;
private boolean wasGetAccessModelCalled;
- public MockCMWithAccessModel(AccessModel accessModel, IBasicArtifact<?> expectedUser, Object expectedObject, boolean isApplicable, Collection<AccessContextId> contextIds) {
+ public MockCMWithAccessModel(AccessModel accessModel, IBasicArtifact<?> expectedUser, Object expectedObject, boolean isApplicable, Collection<IAccessContextId> contextIds) {
super(expectedUser, expectedObject, isApplicable, contextIds);
this.accessModel = accessModel;
}
diff --git a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagement.java b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagement.java
index d3d2542a3e..66f37b5326 100644
--- a/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagement.java
+++ b/plugins/org.eclipse.osee.framework.access.test/src/org/eclipse/osee/framework/access/test/mocks/MockConfigurationManagement.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.framework.access.test.mocks;
import java.util.Collection;
-import org.eclipse.osee.framework.core.data.AccessContextId;
+import org.eclipse.osee.framework.core.data.IAccessContextId;
import org.eclipse.osee.framework.core.model.IBasicArtifact;
import org.eclipse.osee.framework.core.services.CmAccessControl;
import org.junit.Assert;
@@ -24,11 +24,11 @@ public class MockConfigurationManagement implements CmAccessControl {
private final IBasicArtifact<?> expectedUser;
private final Object expectedObject;
private final boolean isApplicable;
- private final Collection<AccessContextId> contextIds;
+ private final Collection<IAccessContextId> contextIds;
private boolean wasIsApplicableCalled;
private boolean wasGetContextIdCalled;
- public MockConfigurationManagement(IBasicArtifact<?> expectedUser, Object expectedObject, boolean isApplicable, Collection<AccessContextId> contextIds) {
+ public MockConfigurationManagement(IBasicArtifact<?> expectedUser, Object expectedObject, boolean isApplicable, Collection<IAccessContextId> contextIds) {
super();
this.expectedUser = expectedUser;
this.expectedObject = expectedObject;
@@ -45,7 +45,7 @@ public class MockConfigurationManagement implements CmAccessControl {
}
@Override
- public Collection<AccessContextId> getContextId(IBasicArtifact<?> user, Object object) {
+ public Collection<IAccessContextId> getContextId(IBasicArtifact<?> user, Object object) {
wasGetContextIdCalled = true;
Assert.assertEquals(expectedUser, user);
Assert.assertEquals(expectedObject, object);

Back to the top