Created
September 12, 2012 17:10
-
-
Save sam/3708231 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
package org.foo; | |
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 "minitest/autorun" | |
describe org.foo.Bar do | |
describe "baz" do | |
it "must return 1" do | |
org.foo.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
As an example of the above mention of direct execution, you can:
./install-dependencies
bundle install
test/watch.rb
Which is basically the setup I mention above, except using Maven instead of Ant to compile. (Only because I assume using a non-Maven source tree structure, and custom build-dir would be a little simpler with Ant?)