Sha256: 1dff8c67d5d7c7183d9119645e96891f5f3dbd2e2514d843267193c80b8ac900
Contents?: true
Size: 858 Bytes
Versions: 2
Compression:
Stored size: 858 Bytes
Contents
require 'test/unit' require 'rubygems' require 'rubeus' # Test for driver_manager.rb class TestDriverManager < Test::Unit::TestCase # setup method def setup end def test_normal assert_nothing_raised do @con = Rubeus::Jdbc::DriverManager.connect("jdbc:derby:test_db;create = true", "", "") end if @con assert_equal(false, @con.closed?) @con.close end end def test_without_auto_setup_manager assert_nothing_raised do org.apache.derby.jdbc.EmbeddedDriver @con = Rubeus::Jdbc::DriverManager.connect("jdbc:derby:test_db;create = true", "", "", :auto_setup_manager => false) @con.close end end def test_with_block con = Rubeus::Jdbc::DriverManager.connect("jdbc:derby:test_db;create = true") do |con| assert_equal(false, con.closed?) end assert_nil(con) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubeus-0.0.8-java | test/rubeus/extensions/java/sql/test_driver_manager.rb |
rubeus-0.0.7-java | test/rubeus/extensions/java/sql/test_driver_manager.rb |