From 983801ceb0eea9698b9ae1b7b279ea3d0c996222 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Mon, 15 Mar 2010 12:25:42 -0700 Subject: [PATCH] fixed demos after stub was renamed --- .../demo/tweetstore/controller/AddTweetsControllerTest.java | 4 ++-- .../tweetstore/controller/StoreTweetsControllerTest.java | 6 +++--- .../tweetstore/functions/KeyToStoredTweetStatusTest.java | 4 ++-- .../functions/ServiceToStoredTweetStatusesTest.java | 4 ++-- .../demo/tweetstore/controller/AddTweetsControllerTest.java | 4 ++-- .../tweetstore/controller/StoreTweetsControllerTest.java | 6 +++--- .../tweetstore/functions/KeyToStoredTweetStatusTest.java | 4 ++-- .../functions/ServiceToStoredTweetStatusesTest.java | 4 ++-- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java index e2637130ba..86ff724206 100644 --- a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java +++ b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java @@ -26,8 +26,8 @@ import java.util.Map; import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.functions.ServiceToStoredTweetStatuses; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; @@ -49,7 +49,7 @@ public class AddTweetsControllerTest { ExecutionException { Map services = Maps.newHashMap(); for (String name : new String[] { "1", "2" }) { - BlobStoreContext context = new StubBlobStoreContextBuilder().buildBlobStoreContext(); + BlobStoreContext context = new TransientBlobStoreContextBuilder().buildBlobStoreContext(); context.getAsyncBlobStore().createContainerInLocation(null, container).get(); Blob blob = context.getAsyncBlobStore().newBlob("1"); blob.getMetadata().getUserMetadata().put(TweetStoreConstants.SENDER_NAME, "frank"); diff --git a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java index fff6ab7d03..0b3c143180 100644 --- a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java +++ b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java @@ -30,8 +30,8 @@ import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobMap; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; import org.jclouds.twitter.TwitterClient; import org.jclouds.twitter.domain.Status; @@ -56,8 +56,8 @@ public class StoreTweetsControllerTest { Map createBlobStores() throws InterruptedException, ExecutionException { Map contexts = ImmutableMap. of("test1", - new StubBlobStoreContextBuilder().buildBlobStoreContext(), "test2", - new StubBlobStoreContextBuilder().buildBlobStoreContext()); + new TransientBlobStoreContextBuilder().buildBlobStoreContext(), "test2", + new TransientBlobStoreContextBuilder().buildBlobStoreContext()); for (BlobStoreContext blobstore : contexts.values()) { blobstore.getAsyncBlobStore().createContainerInLocation(null, "favo").get(); } diff --git a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java index 85d70640e3..6fa7670f06 100644 --- a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java +++ b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java @@ -25,8 +25,8 @@ import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobMap; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; import org.testng.annotations.Test; @@ -40,7 +40,7 @@ import org.testng.annotations.Test; public class KeyToStoredTweetStatusTest { BlobMap createMap() throws InterruptedException, ExecutionException { - BlobStoreContext context = new StubBlobStoreContextBuilder().buildBlobStoreContext(); + BlobStoreContext context = new TransientBlobStoreContextBuilder().buildBlobStoreContext(); context.getBlobStore().createContainerInLocation(null, "test1"); return context.createBlobMap("test1"); } diff --git a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java index 5b455fb2be..2e755e580f 100644 --- a/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java +++ b/demos/gae-tweetstore-spring/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java @@ -25,8 +25,8 @@ import java.util.Map; import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; import org.testng.annotations.Test; @@ -46,7 +46,7 @@ public class ServiceToStoredTweetStatusesTest { ExecutionException { Map services = Maps.newHashMap(); for (String name : new String[] { "1", "2" }) { - BlobStoreContext context = new StubBlobStoreContextBuilder().buildBlobStoreContext(); + BlobStoreContext context = new TransientBlobStoreContextBuilder().buildBlobStoreContext(); context.getAsyncBlobStore().createContainerInLocation(null, container).get(); Blob blob = context.getAsyncBlobStore().newBlob("1"); blob.getMetadata().getUserMetadata().put(TweetStoreConstants.SENDER_NAME, "frank"); diff --git a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java index e2637130ba..86ff724206 100644 --- a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java +++ b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/AddTweetsControllerTest.java @@ -26,8 +26,8 @@ import java.util.Map; import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.functions.ServiceToStoredTweetStatuses; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; @@ -49,7 +49,7 @@ public class AddTweetsControllerTest { ExecutionException { Map services = Maps.newHashMap(); for (String name : new String[] { "1", "2" }) { - BlobStoreContext context = new StubBlobStoreContextBuilder().buildBlobStoreContext(); + BlobStoreContext context = new TransientBlobStoreContextBuilder().buildBlobStoreContext(); context.getAsyncBlobStore().createContainerInLocation(null, container).get(); Blob blob = context.getAsyncBlobStore().newBlob("1"); blob.getMetadata().getUserMetadata().put(TweetStoreConstants.SENDER_NAME, "frank"); diff --git a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java index fff6ab7d03..0b3c143180 100644 --- a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java +++ b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/controller/StoreTweetsControllerTest.java @@ -30,8 +30,8 @@ import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobMap; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; import org.jclouds.twitter.TwitterClient; import org.jclouds.twitter.domain.Status; @@ -56,8 +56,8 @@ public class StoreTweetsControllerTest { Map createBlobStores() throws InterruptedException, ExecutionException { Map contexts = ImmutableMap. of("test1", - new StubBlobStoreContextBuilder().buildBlobStoreContext(), "test2", - new StubBlobStoreContextBuilder().buildBlobStoreContext()); + new TransientBlobStoreContextBuilder().buildBlobStoreContext(), "test2", + new TransientBlobStoreContextBuilder().buildBlobStoreContext()); for (BlobStoreContext blobstore : contexts.values()) { blobstore.getAsyncBlobStore().createContainerInLocation(null, "favo").get(); } diff --git a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java index 85d70640e3..6fa7670f06 100644 --- a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java +++ b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/KeyToStoredTweetStatusTest.java @@ -25,8 +25,8 @@ import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobMap; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; import org.testng.annotations.Test; @@ -40,7 +40,7 @@ import org.testng.annotations.Test; public class KeyToStoredTweetStatusTest { BlobMap createMap() throws InterruptedException, ExecutionException { - BlobStoreContext context = new StubBlobStoreContextBuilder().buildBlobStoreContext(); + BlobStoreContext context = new TransientBlobStoreContextBuilder().buildBlobStoreContext(); context.getBlobStore().createContainerInLocation(null, "test1"); return context.createBlobMap("test1"); } diff --git a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java index 5b455fb2be..2e755e580f 100644 --- a/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java +++ b/demos/gae-tweetstore/src/test/java/org/jclouds/demo/tweetstore/functions/ServiceToStoredTweetStatusesTest.java @@ -25,8 +25,8 @@ import java.util.Map; import java.util.concurrent.ExecutionException; import org.jclouds.blobstore.BlobStoreContext; +import org.jclouds.blobstore.TransientBlobStoreContextBuilder; import org.jclouds.blobstore.domain.Blob; -import org.jclouds.blobstore.integration.StubBlobStoreContextBuilder; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.reference.TweetStoreConstants; import org.testng.annotations.Test; @@ -46,7 +46,7 @@ public class ServiceToStoredTweetStatusesTest { ExecutionException { Map services = Maps.newHashMap(); for (String name : new String[] { "1", "2" }) { - BlobStoreContext context = new StubBlobStoreContextBuilder().buildBlobStoreContext(); + BlobStoreContext context = new TransientBlobStoreContextBuilder().buildBlobStoreContext(); context.getAsyncBlobStore().createContainerInLocation(null, container).get(); Blob blob = context.getAsyncBlobStore().newBlob("1"); blob.getMetadata().getUserMetadata().put(TweetStoreConstants.SENDER_NAME, "frank");