Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2011-01-21 19:56:29 +0000
committerRyan D. Brooks2011-01-21 19:56:29 +0000
commit55f486018ade49b78245a45b5633b8fb029b8ee5 (patch)
treee61bbac96bb9ca8a8dc890a761a1e84e206e8dee
parente6596bcc5540a00676aab4897604c45499243b99 (diff)
downloadorg.eclipse.osee-55f486018ade49b78245a45b5633b8fb029b8ee5.tar.gz
org.eclipse.osee-55f486018ade49b78245a45b5633b8fb029b8ee5.tar.xz
org.eclipse.osee-55f486018ade49b78245a45b5633b8fb029b8ee5.zip
feature: Update RemoteEventTest to include a delay in processing changes
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsRemoteEventTestItem.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsRemoteEventTestItem.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsRemoteEventTestItem.java
index dea0cfbf5ff..07ad51cd058 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsRemoteEventTestItem.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/navigate/AtsRemoteEventTestItem.java
@@ -120,13 +120,21 @@ public class AtsRemoteEventTestItem extends WorldXNavigateItemAction {
return;
}
+ int sleepTime = 250;
makeChanges1(teamArt);
+ sleep(sleepTime);
makeChanges2(teamArt);
+ sleep(sleepTime);
makeChanges3(teamArt);
+ sleep(sleepTime);
makeChanges4(teamArt);
+ sleep(sleepTime);
makeChanges5(teamArt);
+ sleep(sleepTime);
makeChanges6(teamArt);
+ sleep(sleepTime);
makeChanges7(teamArt);
+ sleep(sleepTime);
validateActionAtEnd(actionArt);
@@ -141,6 +149,16 @@ public class AtsRemoteEventTestItem extends WorldXNavigateItemAction {
resultData.report(title);
}
+ public static void sleep(long milliseconds) {
+ try {
+ System.out.println("Sleeping " + milliseconds);
+ Thread.sleep(milliseconds);
+ System.out.println("Awake");
+ } catch (Exception ex) {
+ OseeLog.log(AtsPlugin.class, Level.SEVERE, ex);
+ }
+ }
+
private void makeChanges7(TeamWorkFlowArtifact teamArt) throws OseeCoreException {
SkynetTransaction transaction = new SkynetTransaction(AtsUtil.getAtsBranch(), "Remote Event Test");
TransitionManager transitionMgr = new TransitionManager(teamArt);

Back to the top