diff options
author | Steve Kemp <steve@steve.org.uk> | 2012-11-23 13:52:20 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2012-11-23 13:52:20 +0000 |
commit | 755a8885a68233450eec40de19606aa30358b9b1 (patch) | |
tree | 0a044e75c43adbf73f36a7378222b47bfa596cd9 /t/test-factory.rb | |
parent | 063e394f0ffc7cc11b6ef8fa1a2d353a399ccab5 (diff) |
Renamed.
--HG--
rename : t/test-factory.rb => t/test-custodian-testfactory.rb
Diffstat (limited to 't/test-factory.rb')
-rwxr-xr-x | t/test-factory.rb | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/t/test-factory.rb b/t/test-factory.rb deleted file mode 100755 index 7ef44b1..0000000 --- a/t/test-factory.rb +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/ruby -Ilib/ -I../lib/ - - -require 'test/unit' - -require 'custodian/protocoltest/tcp.rb' -require 'custodian/protocoltest/dns.rb' -require 'custodian/protocoltest/ftp.rb' -require 'custodian/protocoltest/http.rb' -require 'custodian/protocoltest/jabber.rb' -require 'custodian/protocoltest/ldap.rb' -require 'custodian/protocoltest/ping.rb' -require 'custodian/protocoltest/rsync.rb' -require 'custodian/protocoltest/ssh.rb' -require 'custodian/protocoltest/smtp.rb' - - - -class TestTestFactory < Test::Unit::TestCase - - # - # Create the test suite environment: NOP. - # - def setup - end - - # - # Destroy the test suite environment: NOP. - # - def teardown - end - - - # - # Test the FTP-test may be created - # - def test_ftp_uri - assert_nothing_raised do - assert( Custodian::TestFactory.create( "ftp.example.com must run ftp." ) ) - assert( Custodian::TestFactory.create( "ftp://ftp.example.com/ must run ftp." ) ) - assert( Custodian::TestFactory.create( "ftp://ftp.example.com/ must run ftp on 21." ) ) - assert( Custodian::TestFactory.create( "ftp://ftp.example.com/ must run ftp on 21 otherwise 'xxx'." ) ) - end - - - assert( Custodian::TestFactory.create( "ftp.example.com must run ftp." ).target() == "ftp.example.com" ) - assert( Custodian::TestFactory.create( "ftp://ftp.example.com/ must run ftp." ).target() == "ftp.example.com" ) - - - - assert( Custodian::TestFactory.create( "rsync.example.com must run rsync." ).target() == "rsync.example.com" ) - assert( Custodian::TestFactory.create( "rsync://rsync.example.com/ must run rsync." ).target() == "rsync.example.com" ) - - - end - - -end - |