Return-Path: Delivered-To: apmail-tuscany-commits-archive@www.apache.org Received: (qmail 46765 invoked from network); 1 Sep 2009 22:37:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 22:37:40 -0000 Received: (qmail 68376 invoked by uid 500); 1 Sep 2009 22:37:40 -0000 Delivered-To: apmail-tuscany-commits-archive@tuscany.apache.org Received: (qmail 68306 invoked by uid 500); 1 Sep 2009 22:37:40 -0000 Mailing-List: contact commits-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list commits@tuscany.apache.org Received: (qmail 68296 invoked by uid 99); 1 Sep 2009 22:37:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 22:37:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 22:37:37 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DEAAA2388863; Tue, 1 Sep 2009 22:37:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r810291 - /tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ Date: Tue, 01 Sep 2009 22:37:15 -0000 To: commits@tuscany.apache.org From: lresende@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090901223715.DEAAA2388863@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: lresende Date: Tue Sep 1 22:37:15 2009 New Revision: 810291 URL: http://svn.apache.org/viewvc?rev=810291&view=rev Log: 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 Added: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java (with props) Modified: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java Added: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java?rev=810291&view=auto ============================================================================== --- tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java (added) +++ tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java Tue Sep 1 22:37:15 2009 @@ -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; +} Propchange: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/Constants.java ------------------------------------------------------------------------------ svn:keywords = Rev Date Modified: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java?rev=810291&r1=810290&r2=810291&view=diff ============================================================================== --- tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java (original) +++ tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/ConsumerProviderTestCase.java Tue Sep 1 22:37:15 2009 @@ -111,7 +111,7 @@ 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 Modified: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java?rev=810291&r1=810290&r2=810291&view=diff ============================================================================== --- tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java (original) +++ tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleBloggerServiceTestCase.java Tue Sep 1 22:37:15 2009 @@ -78,7 +78,7 @@ 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 @@ 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 ); Modified: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java?rev=810291&r1=810290&r2=810291&view=diff ============================================================================== --- tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java (original) +++ tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleCalendarServiceTestCase.java Tue Sep 1 22:37:15 2009 @@ -83,7 +83,7 @@ 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 @@ 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()); Modified: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java?rev=810291&r1=810290&r2=810291&view=diff ============================================================================== --- tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java (original) +++ tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleContactsServiceTestCase.java Tue Sep 1 22:37:15 2009 @@ -34,7 +34,7 @@ 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 @@ 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 @@ 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()); Modified: tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java?rev=810291&r1=810290&r2=810291&view=diff ============================================================================== --- tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java (original) +++ tuscany/branches/sca-java-1.x/modules/binding-gdata-runtime/src/test/java/org/apache/tuscany/sca/binding/gdata/GoogleWebAlbumServiceTestCase.java Tue Sep 1 22:37:15 2009 @@ -100,7 +100,7 @@ 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()); }