diff options
author | donald.g.dunne | 2016-08-04 23:13:51 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2016-08-31 16:18:18 +0000 |
commit | 8af2d179030caeb16a19a6e82f1380e2b56c41d0 (patch) | |
tree | 60e98b851b7e1dda025a11a8fe2ad9da7249f7ef /plugins | |
parent | 509bea4523091bf366478636020e2e6ce7c433c5 (diff) | |
download | org.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
Change-Id: Ibb5e6d5b0f0e116c01933b9b83a77bb449ced062
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/org.eclipse.osee.ats.client.integration.tests/src/org/eclipse/osee/ats/client/integration/tests/ats/core/client/AtsTestUtil.java | 5 |
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 519da80d2c4..f116c069dd3 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; |