-
-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* jruby-1_7: more specs - as package_name actually works as is with Java proxy modules JavaPackageModuleTemplate should handle respond_to? :name as well allow object_id to work correctly for Java package modules facelift some JI specs a bit make sure package modules (at leat) respond_to? :name missing hashCode to go along equals in RespondToMissingMethod [build] no more torquebox repo add missing file Conflicts: core/src/main/java/org/jruby/RubyModule.java core/src/main/java/org/jruby/java/util/BlankSlateWrapper.java lib/pom.rb lib/pom.xml maven/jruby-complete/pom.rb maven/jruby-complete/pom.xml maven/jruby-complete/src/templates/osgi_many_bundles_with_embedded_gems/gems-bundle/pom.xml maven/jruby-dist/pom.xml maven/jruby-jars/pom.xml maven/jruby/src/it/j2ee_jetty/pom.xml maven/jruby/src/it/j2ee_jetty_rack/pom.xml maven/jruby/src/it/j2ee_tomcat/pom.xml maven/jruby/src/it/j2ee_tomcat_rack/pom.xml maven/jruby/src/it/j2ee_wildfly/pom.xml maven/jruby/src/it/jetty/pom.xml maven/jruby/src/it/many_jars_with_embedded_gems/zip_gem/pom.xml maven/jruby/src/it/many_jars_with_embedded_gems_ng/gem1/pom.xml maven/jruby/src/it/many_jars_with_embedded_gems_ng/gem2/pom.xml maven/jruby/src/it/runnable/pom.xml maven/jruby/src/it/tomcat/pom.xml maven/jruby/src/templates/j2ee_wlp/pom.xml maven/jruby/src/templates/osgi_all_inclusive/pom.xml spec/java_integration/packages/access_spec.rb test/pom.rb test/pom.xml
- 9.4.12.0
- 9.4.11.0
- 9.4.10.0
- 9.4.9.0
- 9.4.8.0
- 9.4.7.0
- 9.4.6.0
- 9.4.5.0
- 9.4.4.0
- 9.4.3.0
- 9.4.2.0
- 9.4.1.0
- 9.4.0.0
- 9.3.15.0
- 9.3.14.0
- 9.3.13.0
- 9.3.12.0
- 9.3.11.0
- 9.3.10.0
- 9.3.9.0
- 9.3.8.0
- 9.3.7.0
- 9.3.6.0
- 9.3.5.0
- 9.3.4.0
- 9.3.3.0
- 9.3.2.0
- 9.3.1.0
- 9.3.0.0
- 9.2.21.0
- 9.2.20.1
- 9.2.20.0
- 9.2.19.0
- 9.2.18.0
- 9.2.17.0
- 9.2.16.0
- 9.2.15.0
- 9.2.14.0
- 9.2.13.0
- 9.2.12.0
- 9.2.11.1
- 9.2.11.0
- 9.2.10.0
- 9.2.9.0
- 9.2.8.0
- 9.2.7.0
- 9.2.6.0
- 9.2.5.0
- 9.2.4.1
- 9.2.4.0
- 9.2.3.0
- 9.2.2.0
- 9.2.1.0
- 9.2.0.0
- 9.1.17.0
- 9.1.16.0
- 9.1.15.0
- 9.1.14.0
- 9.1.13.0
- 9.1.12.0
- 9.1.11.0
- 9.1.10.0
- 9.1.9.0
- 9.1.8.0
- 9.1.7.0
- 9.1.6.0
- 9.1.5.0
- 9.1.4.0
- 9.1.3.0
- 9.1.2.0
- 9.1.1.0
- 9.1.0.0
- 9.0.5.0
- 9.0.4.0
- 9.0.3.0
- 9.0.1.0
Showing
10 changed files
with
99 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
require File.dirname(__FILE__) + "/../spec_helper" | ||
|
||
# for DefaultPackageClass | ||
$CLASSPATH << File.dirname(__FILE__) + "/../../../target/test-classes" | ||
|
||
describe "java package (and class)" do | ||
|
||
it 'have name' do | ||
expect( Java::JavaLang::Integer.name ).to eql 'Java::JavaLang::Integer' | ||
#expect( Java::JavaLang.name ).to eql 'Java::JavaLang' | ||
#expect( Java::Java.name ).to eql 'Java::Java' | ||
#expect( Java::Javax.name ).to eql 'Java::Javax' | ||
expect( Java.name ).to eql 'Java' | ||
#expect( Java::java.util.name ).to eql 'Java::JavaUtil' | ||
#expect( org.xml.name ).to eql 'Java:OrgXml' | ||
#expect( org.xml.sax.name ).to eql 'Java:OrgXmlSax' | ||
#expect( Java::Default.name ).to eql '' | ||
# TODO avoid Default package in favor of Java : | ||
#expect( Java::DefaultPackageClass.name ).to eql 'Java::DefaultPackageClass' | ||
expect( Java::DefaultPackageClass.name ).to eql 'Java::Default::DefaultPackageClass' | ||
end | ||
|
||
it 'have package name' do | ||
expect( Java::JavaLang::Integer.respond_to? :package_name ).to be false | ||
expect( Java::JavaLang.respond_to? :package_name ).to be true | ||
expect( Java::JavaLang.package_name ).to eql 'java.lang' | ||
expect( Java::Java.package_name ).to eql 'java' | ||
expect( Java::Javax.package_name ).to eql 'javax' | ||
expect( Java::java.util.package_name ).to eql 'java.util' | ||
expect( org.xml.package_name ).to eql 'org.xml' | ||
expect( org.xml.sax.package_name ).to eql 'org.xml.sax' | ||
# TODO avoid Default package in favor of Java : | ||
#expect( Java.package_name ).to eql '' | ||
expect( Java::Default.package_name ).to eql '' | ||
end | ||
|
||
it 'respond to name (GH-2468)' do | ||
expect( java.lang.respond_to?(:name) ).to be true | ||
expect( Java::JavaLang.respond_to?(:name) ).to be true | ||
|
||
expect( Java::JavaLang::Integer.respond_to?(:name) ).to be true | ||
expect( Java::Java.respond_to?(:name) ).to be true | ||
expect( Java.respond_to?(:name) ).to be true | ||
expect( org.xml.respond_to?(:name) ).to be true | ||
expect( org.xml.sax.respond_to?(:name) ).to be true | ||
expect( Java::Default.respond_to?(:name) ).to be true | ||
|
||
if Object.const_defined?(:JavaPackageModuleTemplate) # should go-away in 9K | ||
expect( JavaPackageModuleTemplate.respond_to?(:name) ).to be true | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters