Sha256: 6c7f87269de8745f864b2f40e943a9f976c0ffc32c6637609fd2da48f247ccd3
Contents?: true
Size: 1.57 KB
Versions: 25
Compression:
Stored size: 1.57 KB
Contents
module WebService module Response require 'test_helper' class FacetsTest < Test::Unit::TestCase def setup @base_url = "http://bobcatdev.library.nyu.edu" @isbn = "0143039008" @user_id = "N12162279" @institution = "NYU" @doc_id = "nyu_aleph000062856" @dedupmgr_id = "dedupmrg17343091" end def test_search VCR.use_cassette('response search') { soap_action = :search_brief request = Exlibris::Primo::WebService::Request::Search.new(:user_id => @user_id, :institution => @institution) request.add_query_term(@isbn, "isbn", "exact") client = Exlibris::Primo::WebService::Client::Search.new(:base_url => @base_url) response = Exlibris::Primo::WebService::Response::Search.new( client.send(soap_action, request.to_xml), soap_action) assert_not_nil response.facets assert((not response.facets.empty?)) } end def test_full_view VCR.use_cassette('response full view') { soap_action = :get_record request = Exlibris::Primo::WebService::Request::FullView.new(:user_id => @user_id, :institution => @institution, :doc_id => @doc_id) client = Exlibris::Primo::WebService::Client::Search.new(:base_url => @base_url) response = Exlibris::Primo::WebService::Response::FullView.new( client.send(soap_action, request.to_xml), soap_action) assert_not_nil response.facets assert response.facets.empty? } end end end end
Version data entries
25 entries across 25 versions & 1 rubygems