From 89978e2427a579eb740e6fd84b09c05c15f6f4c0 Mon Sep 17 00:00:00 2001 From: Tyler Sommer Date: Mon, 11 Apr 2016 11:06:04 -0600 Subject: [PATCH] Fixed tests. --- gojava_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gojava_test.go b/gojava_test.go index 8559206..6d8c09c 100644 --- a/gojava_test.go +++ b/gojava_test.go @@ -8,6 +8,7 @@ import ( "os" "os/exec" "path/filepath" + "go/build" ) var javaTest = flag.String("javatest", ".*", "Run only java tests matching the regular expression") @@ -19,6 +20,7 @@ func TestJavaBind(t *testing.T) { } jar := filepath.Join(tmpDir, "gojavatest.jar") if err := bindToJar(jar, + "", "github.com/sridharv/gomobile-java/bind/testpkg", "github.com/sridharv/gomobile-java/bind/testpkg/secondpkg", "github.com/sridharv/gomobile-java/bind/testpkg/simplepkg", @@ -28,7 +30,7 @@ func TestJavaBind(t *testing.T) { toCopy := []filePair{ {filepath.Join(tmpDir, "MoreAsserts.java"), "MoreAsserts.java"}, - {filepath.Join(tmpDir, "SeqTest.java"), "../gomobile-java/bind/java/SeqTest.java"}, + {filepath.Join(tmpDir, "SeqTest.java"), filepath.Join(build.Default.GOPATH, "src/github.com/sridharv/gomobile-java/bind/java/SeqTest.java")}, } if err := copyFiles(toCopy); err != nil { t.Fatal(err)