Skip to content

Commit

Permalink
[jOOQ/jOOQ#94] Tests fail only on Java 9+
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Apr 9, 2020
1 parent 89bec49 commit 1e6b04b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions jOOR-java-8/src/test/java/org/joor/test/CompileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void testCompileWithClasspathDependency() throws Exception {
assertEquals(new ArrayList<Object>(), v.validateTestClass(null));
}

@Test(expected = Throwable.class) // [#77]
@Test
public void testCompileLocalInterfaceHierarchy() throws Exception {
I i = Reflect.compile("org.joor.test.CompileTest1", "package org.joor.test; public class CompileTest1 implements org.joor.test.I {}").create().get();
assertEquals("I.m()", i.m());
Expand Down Expand Up @@ -86,7 +86,7 @@ public void testCompileDifferentPackage() {
assertEquals("Hello World!", supplier.get());
}

@Test(expected = Throwable.class) // [#76]
@Test
public void testRecompileSameClassName() {

// The class loader will cache the class name by default, so a new content shouldn't affect the type
Expand Down
4 changes: 2 additions & 2 deletions jOOR/src/test/java/org/joor/test/CompileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void testCompileWithClasspathDependency() throws Exception {
assertEquals(new ArrayList<Object>(), v.validateTestClass(null));
}

@Test(expected = Throwable.class) // [#77]
@Test /* [java-9] */ (expected = Throwable.class) // [#77] /* [/java-9] */
public void testCompileLocalInterfaceHierarchy() throws Exception {
I i = Reflect.compile("org.joor.test.CompileTest1", "package org.joor.test; public class CompileTest1 implements org.joor.test.I {}").create().get();
assertEquals("I.m()", i.m());
Expand Down Expand Up @@ -86,7 +86,7 @@ public void testCompileDifferentPackage() {
assertEquals("Hello World!", supplier.get());
}

@Test(expected = Throwable.class) // [#76]
@Test /* [java-9] */ (expected = Throwable.class) // [#76] /* [/java-9] */
public void testRecompileSameClassName() {

// The class loader will cache the class name by default, so a new content shouldn't affect the type
Expand Down

0 comments on commit 1e6b04b

Please sign in to comment.