module WebService module Client require 'test_helper' class SearchTest < Test::Unit::TestCase def setup @base_url = "http://bobcatdev.library.nyu.edu" @doc_id = "nyu_aleph000062856" @isbn = "0143039008" @issn = "0090-5720" @title = "Travels with My Aunt" @author = "Graham Greene" @genre = "Book" @institution = "NYU" end def test_search_brief_by_issn assert_nothing_raised { VCR.use_cassette('client search brief issn') do client = Exlibris::Primo::WebService::Client::Search.new :base_url => @base_url response = client.search_brief "ANDisbnexact0090-572015falseNYU]]>" end } end def test_search_brief_by_isnn assert_nothing_raised { VCR.use_cassette('client search brief isbn') do client = Exlibris::Primo::WebService::Client::Search.new :base_url => @base_url response = client.search_brief "ANDisbnexact014303900815falseNYU]]>" end } end def test_get_record assert_nothing_raised { VCR.use_cassette('client get record') do client = Exlibris::Primo::WebService::Client::Search.new :base_url => @base_url response = client.get_record "AND15falseNYUnyu_aleph000062856]]>" end } end end end end