summaryrefslogtreecommitdiffstats
path: root/branches
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-09-01 22:37:15 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-09-01 22:37:15 +0000
commit1e08828689f950e51483f4df7c72b5fe623aea34 (patch)
treecb864c7321d746407fdadb889538cf9420801c95 /branches
parente691784d79c0f1c401ed770596c965f8e6b708b3 (diff)
Making delay available from a constant class and bumping it to 400 to see if it helps with some of the gdata extension build issues
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@810291 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches')
-rw-r--r--branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java24
-rw-r--r--branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java2
-rw-r--r--branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java4
-rw-r--r--branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java4
-rw-r--r--branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java6
-rw-r--r--branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java2
6 files changed, 33 insertions, 9 deletions
diff --git a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java
new file mode 100644
index 0000000000..6b4a6e2509
--- /dev/null
+++ b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.tuscany.sca.binding.gdata;
+
+public class Constants {
+ static long SLEEP_INTERVAL = 400L;
+}
diff --git a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java
index 3ac79e5f0a..2c15242675 100644
--- a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java
+++ b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java
@@ -111,7 +111,7 @@ public class ConsumerProviderTestCase extends TestCase {
newEntry.setContent(new PlainTextConstruct("NewEntry Content to be delted"));
Entry confirmedNewEntry = testService.clientPost(newEntry);
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
Feed feed00 = testService.clientGetFeed();
int entryNum00 = feed00.getEntries().size(); // The number of entries
diff --git a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java
index 69c17aa447..89f48f08d0 100644
--- a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java
+++ b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java
@@ -78,7 +78,7 @@ public class GoogleBloggerServiceTestCase {
String entryID = "2889832689497686762";
String newBlogEntryTitle = "updatedTitleByTestCase2";
testService.clientPut(entryID, newBlogEntryTitle); //update the title
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
Entry updatedEntry = testService.clientGetEntry(entryID);
Assert.assertEquals(newBlogEntryTitle, updatedEntry.getTitle().getPlainText());
}
@@ -108,7 +108,7 @@ public class GoogleBloggerServiceTestCase {
newEntry.setTitle(new PlainTextConstruct("blogEntryShouldNotApear"));
newEntry.setContent(new PlainTextConstruct("contentByBloggerShouldNotAppear"));
Entry postedEntry = testService.clientPost(newEntry);
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
int idStartPosition = postedEntry.getId().lastIndexOf("-");
String postedEntryID = postedEntry.getId().substring(idStartPosition+1);
System.out.println("postedEntryID: " + postedEntryID );
diff --git a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java
index 882716575b..4451c40faf 100644
--- a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java
+++ b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java
@@ -83,7 +83,7 @@ public class GoogleCalendarServiceTestCase extends TestCase{
String entryID = "1c76lcl70jg9r0fm18rcbneea8";
String newBlogEntryTitle = "updatedTitleByGoogleContactsConsumerTestCase";
testService.clientPut(entryID, newBlogEntryTitle); //update the title
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
Entry updatedEntry = testService.clientGetEntry(entryID);
assertEquals(newBlogEntryTitle, updatedEntry.getTitle().getPlainText());
}
@@ -113,7 +113,7 @@ public class GoogleCalendarServiceTestCase extends TestCase{
newEntry.setTitle(new PlainTextConstruct("calendarEntryShouldNotApear"));
newEntry.setContent(new PlainTextConstruct("calendarByBloggerShouldNotAppear"));
Entry postedEntry = testService.clientPost(newEntry);
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
System.out.println("ID: " + postedEntry.getId());
diff --git a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java
index 959c153074..7ef9c29fcd 100644
--- a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java
+++ b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java
@@ -34,7 +34,7 @@ import com.google.gdata.data.Entry;
import com.google.gdata.data.Feed;
import com.google.gdata.data.PlainTextConstruct;
-public class GoogleContactsServiceTestCase extends TestCase{
+public class GoogleContactsServiceTestCase extends TestCase {
private SCADomain scaDomainConsumer = null;
private CustomerClient testService = null;
@@ -83,7 +83,7 @@ public class GoogleContactsServiceTestCase extends TestCase{
String entryID = "12feeeb38ab87365";
String newBlogEntryTitle = "updatedTitleByGoogleContactsConsumerTestCase";
testService.clientPut(entryID, newBlogEntryTitle); //update the title
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
Entry updatedEntry = testService.clientGetEntry(entryID);
assertEquals(newBlogEntryTitle, updatedEntry.getTitle().getPlainText());
}
@@ -113,7 +113,7 @@ public class GoogleContactsServiceTestCase extends TestCase{
newEntry.setTitle(new PlainTextConstruct("contactEntryShouldNotApear"));
newEntry.setContent(new PlainTextConstruct("contactByBloggerShouldNotAppear"));
Entry postedEntry = testService.clientPost(newEntry);
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
System.out.println("ID: " + postedEntry.getId());
diff --git a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java
index 96484cdf29..474d669ff0 100644
--- a/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java
+++ b/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java
@@ -100,7 +100,7 @@ public class GoogleWebAlbumServiceTestCase extends TestCase{
String entryID = "photoid/5233468700029715874";
String newBlogEntryTitle = "updatedTitle:dog";
testService.clientPut(entryID, newBlogEntryTitle); //update the title
- Thread.sleep(300);
+ Thread.sleep(Constants.SLEEP_INTERVAL);
Entry updatedEntry = testService.clientGetEntry(entryID);
assertEquals(newBlogEntryTitle, updatedEntry.getTitle().getPlainText());
}