We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bab9d7 commit 4f36020Copy full SHA for 4f36020
1 file changed
org.bridgedb.rdb/test/org/bridgedb/rdb/Test.java
@@ -61,6 +61,14 @@ public static void setup() {
61
62
@org.junit.jupiter.api.Test
63
public void testGdbProvider() throws ClassNotFoundException, IDMapperException, IOException{
64
+ // only for Java 11 and higher
65
+ String specVersion = System.getProperty("java.specification.version");
66
+ if (specVersion.contains(".")) specVersion = specVersion.substring(0, specVersion.indexOf('.'));
67
+ if (Integer.valueOf(specVersion) < 11) {
68
+ System.out.print("Only running testGdbProvider() for Java 11 or higher");
69
+ return;
70
+ }
71
+
72
Class.forName("org.bridgedb.file.IDMapperText");
73
ClassLoader classLoader = this.getClass().getClassLoader();
74
0 commit comments