cmake: Require JUnit version 4.
authorMathias Preiner <mathias.preiner@gmail.com>
Mon, 17 Sep 2018 23:32:18 +0000 (16:32 -0700)
committerMathias Preiner <mathias.preiner@gmail.com>
Sat, 22 Sep 2018 23:30:59 +0000 (16:30 -0700)
test/java/BitVectors.java
test/java/CMakeLists.txt

index 22dccfefc103745365ed163232c3b7cea7223739..f248613228025c4411e3b71e03d0e5696fc0cae9 100644 (file)
@@ -51,7 +51,7 @@ public class BitVectors {
     //
     // Two more efficient yet equivalent methods are:
     //
-    //(1) x = a ⊕ b ⊕ x;
+    //(1) x = a xor b xor x;
     //
     //(2) x = a + b - x;
     //
index 0139c5672c36c5a0d953fed1d8f6fefcba7f346d..27042559a4a90eb7d463ee3e70156f3177a3046d 100644 (file)
@@ -1,5 +1,5 @@
 find_package(Java REQUIRED)
-find_package(JUnit REQUIRED)
+find_package(JUnit 4.0 REQUIRED)
 include(UseJava)
 
 set(java_test_src_files
@@ -28,7 +28,7 @@ foreach(src_file ${java_test_src_files})
   add_test(
     NAME ${name}
     COMMAND
-      java
+      ${Java_JAVA_EXECUTABLE}
         -Djava.library.path=${CMAKE_BINARY_DIR}/src/bindings/java/
         -cp ${classpath}
         org.junit.runner.JUnitCore