Sha256: 7f85f10555f08a84bce87e21829e9c987c9e8a03835190e0ca1975621540b38b

Contents?: true

Size: 1003 Bytes

Versions: 20

Compression:

Stored size: 1003 Bytes

Contents

# In order to run these tests, you need to have a few things on your
# classpath. First, you're going to need the Sun File system
# context. You can get that here: 
#
# http://java.sun.com/products/jndi/serviceproviders.html.  
#
# Make sure that you put both the fscontext.jar and the
# providerutil.jar on your classpath.  
#
# To support the connection pooling in the test, you'll need
# commons-dbcp, commons-pool, and commons-collections.
#
# Finally, you'll need the jdbc driver, which is derby, for this test.

require 'jdbc_common'
require 'db/jndi_config'

class DerbyJndiTest < Test::Unit::TestCase
  include SimpleTestMethods
  alias_method :setup_simple, :setup
  def setup
    ActiveRecord::Base.establish_connection({
        :jndi => 'jdbc/derbydb',
        :adapter => 'jdbc'})
    logger = Logger.new('jndi_test.log')
    logger.level = Logger::DEBUG
    ActiveRecord::Base.logger = logger
    setup_simple
  end
end

at_exit { 
  require 'fileutils'
  FileUtils.rm_rf 'derby-testdb'
}

Version data entries

20 entries across 20 versions & 4 rubygems

Version Path
saturnflyer-activerecord-jdbc-adapter-0.9.3 test/jndi_test.rb
kb-activerecord-jdbc-adapter-0.9.7.1-java test/jndi_test.rb
kb-activerecord-jdbc-adapter-1.0.0.beta1-java test/jndi_test.rb
activerecord-jdbc-adapter-1.0.0.beta1-java test/jndi_test.rb
activerecord-jdbc-adapter-0.9.7-java test/jndi_test.rb
activerecord-jdbc-adapter-0.9.6-java test/jndi_test.rb
activerecord-jdbc-adapter-0.9.5-java test/jndi_test.rb
activerecord-jdbc-adapter-0.9.4-java test/jndi_test.rb
activerecord-jdbc-adapter-0.9.3-java test/jndi_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.6 test/jndi_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.5 test/jndi_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.4 test/jndi_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.3 test/jndi_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.2 test/jndi_test.rb
jpzwarte-activerecord-jdbc-adapter-0.9.2.1 test/jndi_test.rb
activerecord-jdbc-adapter-0.9.0.1 test/jndi_test.rb
activerecord-jdbc-adapter-0.9.2 test/jndi_test.rb
activerecord-jdbc-adapter-0.9.1 test/jndi_test.rb
activerecord-jdbc-adapter-0.8.2 test/jndi_test.rb
activerecord-jdbc-adapter-0.9 test/jndi_test.rb