Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Forked from sam/Bar.java
Created September 12, 2012 17:18
Show Gist options
  • Save BanzaiMan/3708304 to your computer and use it in GitHub Desktop.
Save BanzaiMan/3708304 to your computer and use it in GitHub Desktop.
Simplest possible JRuby+Java test
public class Bar {
public static int baz() {
return 1;
}
}
#!/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