Sha256: 66b861b5ea49f7f1b228c40bc4c5fe4a42a1271f8b62f99162b5777e4573c68a

Contents?: true

Size: 1.36 KB

Versions: 25

Compression:

Stored size: 1.36 KB

Contents

module WebService
  module Client
    require 'test_helper'
    class TagsTest < Test::Unit::TestCase
      def setup
        @base_url = "http://bobcatdev.library.nyu.edu"
        @doc_id = "nyu_aleph000062856"
        @user_id = "N12162279"
        @institution = "NYU"
      end

      def test_get_tags
        assert_nothing_raised {
          VCR.use_cassette('client get tags') do
            client = Exlibris::Primo::WebService::Client::Tags.new :base_url => @base_url
            response = client.get_tags "<request><![CDATA[<getTagsRequest xmlns=\"http://www.exlibris.com/primo/xsd/wsRequest\" xmlns:uic=\"http://www.exlibris.com/primo/xsd/primoview/uicomponents\"><institution>NYU</institution><docId>nyu_aleph000062856</docId><userId>N12162279</userId></getTagsRequest>]]></request>"
          end
        }
      end

      def test_get_all_my_tags
        assert_nothing_raised {
          VCR.use_cassette('client get all my tags') do
            client = Exlibris::Primo::WebService::Client::Tags.new :base_url => @base_url
            response = client.get_all_my_tags "<request><![CDATA[<getAllMyTagsRequest xmlns=\"http://www.exlibris.com/primo/xsd/wsRequest\" xmlns:uic=\"http://www.exlibris.com/primo/xsd/primoview/uicomponents\"><institution>NYU</institution><userId>N12162279</userId></getAllMyTagsRequest>]]></request>"
          end
        }
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
exlibris-primo-2.1.1 test/web_service/client/tags_test.rb
exlibris-primo-2.1.0 test/web_service/client/tags_test.rb
exlibris-primo-2.0.0 test/web_service/client/tags_test.rb
exlibris-primo-1.1.9 test/web_service/client/tags_test.rb
exlibris-primo-1.1.8 test/web_service/client/tags_test.rb
exlibris-primo-1.1.7 test/web_service/client/tags_test.rb
exlibris-primo-1.1.6 test/web_service/client/tags_test.rb
exlibris-primo-1.1.5 test/web_service/client/tags_test.rb
exlibris-primo-1.1.4 test/web_service/client/tags_test.rb
exlibris-primo-1.1.3 test/web_service/client/tags_test.rb
exlibris-primo-1.1.2 test/web_service/client/tags_test.rb
exlibris-primo-1.1.1 test/web_service/client/tags_test.rb
exlibris-primo-1.1.0 test/web_service/client/tags_test.rb
exlibris-primo-1.0.11 test/web_service/client/tags_test.rb
exlibris-primo-1.0.10 test/web_service/client/tags_test.rb
exlibris-primo-1.0.9 test/web_service/client/tags_test.rb
exlibris-primo-1.0.8 test/web_service/client/tags_test.rb
exlibris-primo-1.0.7 test/web_service/client/tags_test.rb
exlibris-primo-1.0.6 test/web_service/client/tags_test.rb
exlibris-primo-1.0.5 test/web_service/client/tags_test.rb