Sha256: 455a52da760802937e8e1d5d580460f0ac605110d2055720c6bad764b163fb5e
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 Bytes
Contents
require 'spec_helper' module Reigns describe JNDIContext do context "when created with mappings" do before(:each) do @jndi_context = JNDIContext.new({'jndi_name' => 'service'}) end it "stubs the default JNDI naming factory" do Java::java.lang.System.getProperty("java.naming.factory.initial").should eql "com._5values.jndistub.LightweightJNDIContextFactory" end it "should return the initial context configured with the mappings" do @jndi_context.lookup('jndi_name').should eql 'service' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reigns-1.0.1-java | spec/jndi_context_spec.rb |