From 660cf026292d0b31bf873d796300a48dee7cc6a4 Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 1 Sep 2009 22:00:26 +0000 Subject: 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@810264 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java') diff --git a/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java b/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java index 25b0ef37da..510ce3c0a8 100644 --- a/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java +++ b/branches/sca-java-1.5.1/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java @@ -35,7 +35,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; @@ -84,7 +84,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()); } @@ -115,7 +115,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()); -- cgit v1.2.3