changed blobstore test to use factory for renamed transient provider

This commit is contained in:
Hugo Duncan 2010-03-09 12:32:01 -05:00
parent e04784373e
commit bdba469580
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
(ns org.jclouds.blobstore-test (ns org.jclouds.blobstore-test
(:use [org.jclouds.blobstore] :reload-all) (:use [org.jclouds.blobstore] :reload-all)
(:use clojure.test) (:use clojure.test)
(:import org.jclouds.blobstore.TransientBlobStoreContextBuilder)) (:import org.jclouds.blobstore.BlobStoreContextFactory))
(def stub-context (.buildBlobStoreContext (TransientBlobStoreContextBuilder.))) (def stub-context (.createContext (BlobStoreContextFactory.) "transient" "" ""))
(def stub-blobstore (.getBlobStore stub-context)) (def stub-blobstore (.getBlobStore stub-context))
(defn clean-stub-fixture [f] (defn clean-stub-fixture [f]
@ -24,7 +24,7 @@
(is (= stub-context (blobstore-context stub-blobstore)))) (is (= stub-context (blobstore-context stub-blobstore))))
(deftest as-blobstore-test (deftest as-blobstore-test
;(is (blobstore? (blobstore "stub" "user" "password"))) (is (blobstore? (blobstore "transient" "user" "password")))
(is (blobstore? (as-blobstore stub-blobstore))) (is (blobstore? (as-blobstore stub-blobstore)))
(is (blobstore? (as-blobstore stub-context)))) (is (blobstore? (as-blobstore stub-context))))