[BioRuby-cvs] bioruby/test/unit/bio/io test_ddbjxml.rb,NONE,1.1
Mitsuteru C. Nakao
nakao at pub.open-bio.org
Sun Dec 11 09:59:27 EST 2005
Update of /home/repository/bioruby/bioruby/test/unit/bio/io
In directory pub.open-bio.org:/tmp/cvs-serv25274/test/unit/bio/io
Added Files:
test_ddbjxml.rb
Log Message:
* Newly added.
--- NEW FILE: test_ddbjxml.rb ---
#
# test/unit/bio/io/test_ddbjxml.rb - Unit test for DDBJ XML.
#
# Copyright (C) 2005 Mitsuteru Nakao <n at bioruby.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id: test_ddbjxml.rb,v 1.1 2005/12/11 14:59:25 nakao Exp $
#
require 'pathname'
libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4, 'lib')).cleanpath.to_s
$:.unshift(libpath) unless $:.include?(libpath)
require 'test/unit'
require 'bio/io/ddbjxml'
module Bio
class TestDDBJXMLConstants < Test::Unit::TestCase
def test_constants
constants = ["DDBJ", "TxSearch", "ClustalW", "PML", "Gib", "Fasta", "BASE_URI", "SRS", "Gtop", "GetEntry", "Blast"].sort
assert_equal(constants, Bio::DDBJ::XML.constants.sort)
end
def test_base_url
assert_equal("http://xml.nig.ac.jp/wsdl/", Bio::DDBJ::XML::BASE_URI)
end
def test_blast_server_rul
assert_equal("http://xml.nig.ac.jp/wsdl/Blast.wsdl", Bio::DDBJ::XML::Blast::SERVER_URI)
end
def test_clustalw_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/ClustalW.wsdl", Bio::DDBJ::XML::ClustalW::SERVER_URI)
end
def test_ddbj_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/DDBJ.wsdl", Bio::DDBJ::XML::DDBJ::SERVER_URI)
end
def test_fasta_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/Fasta.wsdl", Bio::DDBJ::XML::Fasta::SERVER_URI)
end
def test_getentry_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/GetEntry.wsdl", Bio::DDBJ::XML::GetEntry::SERVER_URI)
end
def test_gib_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/Gib.wsdl", Bio::DDBJ::XML::Gib::SERVER_URI)
end
def test_gtop_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/Gtop.wsdl", Bio::DDBJ::XML::Gtop::SERVER_URI)
end
def test_pml_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/PML.wsdl", Bio::DDBJ::XML::PML::SERVER_URI)
end
def test_srs_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/SRS.wsdl", Bio::DDBJ::XML::SRS::SERVER_URI)
end
def test_txsearch_server_url
assert_equal("http://xml.nig.ac.jp/wsdl/TxSearch.wsdl", Bio::DDBJ::XML::TxSearch::SERVER_URI)
end
end
end
More information about the bioruby-cvs
mailing list