Skip the ko4j tests on JDK7. The envjs version only works on nashorn
1.1 --- a/boot-script/src/test/java/net/java/html/boot/script/ko4j/KOCase.java Wed Jun 04 16:24:50 2014 +0200
1.2 +++ b/boot-script/src/test/java/net/java/html/boot/script/ko4j/KOCase.java Thu Jun 05 17:50:40 2014 +0200
1.3 @@ -50,6 +50,7 @@
1.4 import java.util.concurrent.Executors;
1.5 import org.apidesign.html.boot.spi.Fn;
1.6 import org.testng.ITest;
1.7 +import org.testng.SkipException;
1.8 import org.testng.annotations.Test;
1.9
1.10 /**
2.1 --- a/boot-script/src/test/java/net/java/html/boot/script/ko4j/KnockoutEnvJSTest.java Wed Jun 04 16:24:50 2014 +0200
2.2 +++ b/boot-script/src/test/java/net/java/html/boot/script/ko4j/KnockoutEnvJSTest.java Thu Jun 05 17:50:40 2014 +0200
2.3 @@ -53,7 +53,6 @@
2.4 import java.net.URL;
2.5 import java.net.URLConnection;
2.6 import java.util.ArrayList;
2.7 -import java.util.Collections;
2.8 import java.util.List;
2.9 import java.util.Map;
2.10 import java.util.concurrent.Executor;
2.11 @@ -89,6 +88,14 @@
2.12 }
2.13
2.14 @Factory public static Object[] compatibilityTests() throws Exception {
2.15 + try {
2.16 + Class.forName("java.lang.FunctionalInterface");
2.17 + } catch (ClassNotFoundException ex) {
2.18 + // only runs on JDK8
2.19 + return new Object[0];
2.20 + }
2.21 +
2.22 +
2.23 Class[] arr = testClasses();
2.24 for (int i = 0; i < arr.length; i++) {
2.25 assertEquals(