Index: test/test_nested_jars.rb =================================================================== --- test/test_nested_jars.rb (revision 0) +++ test/test_nested_jars.rb (revision 0) @@ -0,0 +1,17 @@ +require 'test/unit' + +class TestNestedJars < Test::Unit::TestCase + def setup + require 'outer.jar' + require 'inner.jar' + end + + def test_should_find_nested_java_class + assert_equal 'hello from java', Java::TestNestedJavaClass.new.hello + end + + def test_should_find_nested_ruby_class + require 'test_nested_ruby_class' + assert_equal 'hello from ruby', TestNestedRubyClass.new.hello + end +end Index: test/jarinjar/make_jar.sh =================================================================== --- test/jarinjar/make_jar.sh (revision 0) +++ test/jarinjar/make_jar.sh (revision 0) @@ -0,0 +1,4 @@ +#!/bin/sh -x +javac *.java +jar cf inner.jar *.class *.rb +jar cf ../outer.jar inner.jar Property changes on: test/jarinjar/make_jar.sh ___________________________________________________________________ Name: svn:executable + * Index: test/jarinjar/test_nested_ruby_class.rb =================================================================== --- test/jarinjar/test_nested_ruby_class.rb (revision 0) +++ test/jarinjar/test_nested_ruby_class.rb (revision 0) @@ -0,0 +1,5 @@ +class TestNestedRubyClass + def hello + 'hello from ruby' + end +end Index: test/jarinjar/TestNestedJavaClass.java =================================================================== --- test/jarinjar/TestNestedJavaClass.java (revision 0) +++ test/jarinjar/TestNestedJavaClass.java (revision 0) @@ -0,0 +1,4 @@ +public class TestNestedJavaClass +{ + public String hello() { return "hello from java"; } +}