-
-
Save BanzaiMan/3708304 to your computer and use it in GitHub Desktop.
Simplest possible JRuby+Java test
This file contains hidden or 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
public class Bar { | |
public static int baz() { | |
return 1; | |
} | |
} |
This file contains hidden or 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
#!/usr/bin/env jruby | |
require 'java' | |
java_import 'Bar' | |
require "minitest/autorun" | |
describe Bar do | |
describe "baz" do | |
it "must return 1" do | |
Bar.baz.must_equal 1 | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment