Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2016-08-04 23:13:51 +0000
committerRyan D. Brooks2016-08-31 16:18:18 +0000
commit8af2d179030caeb16a19a6e82f1380e2b56c41d0 (patch)
tree60e98b851b7e1dda025a11a8fe2ad9da7249f7ef
parent509bea4523091bf366478636020e2e6ce7c433c5 (diff)
downloadorg.eclipse.osee-8af2d179030caeb16a19a6e82f1380e2b56c41d0.tar.gz
org.eclipse.osee-8af2d179030caeb16a19a6e82f1380e2b56c41d0.tar.xz
org.eclipse.osee-8af2d179030caeb16a19a6e82f1380e2b56c41d0.zip
bug[ats_ATS307479]: NR Alpha - Guard AtsTestUtil from running on production
-rw-r--r--plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java
index 519da80d2c..f116c069dd 100644
--- a/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java
+++ b/plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java
@@ -68,6 +68,7 @@ import org.eclipse.osee.ats.core.workflow.transition.TransitionHelper;
import org.eclipse.osee.ats.editor.WorkflowEditor;
import org.eclipse.osee.ats.task.TaskEditor;
import org.eclipse.osee.ats.world.WorldEditor;
+import org.eclipse.osee.framework.core.client.ClientSessionManager;
import org.eclipse.osee.framework.core.data.BranchId;
import org.eclipse.osee.framework.core.enums.QueryOption;
import org.eclipse.osee.framework.core.exception.ArtifactDoesNotExist;
@@ -289,6 +290,10 @@ public class AtsTestUtil {
* Clear workDef from cache, clear all objects and create new objects with postFixName in titles
*/
private static void reset(String postFixName) throws OseeCoreException {
+ if (ClientSessionManager.isProductionDataStore()) {
+ throw new OseeStateException("AtsTestUtil should not be run on production.");
+ }
+
AtsBulkLoad.reloadConfig(true);
AtsTestUtil.postFixName = postFixName;

Back to the top