Skip to content

Commit

Permalink
[#76] [#77] Don't ignore tests. Expect throwable instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaseder committed Mar 2, 2020
1 parent 52ec31d commit ff36d22
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
2 changes: 0 additions & 2 deletions jOOR-java-6/src/test/java/org/joor/test/CompileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@








2 changes: 1 addition & 1 deletion jOOR-java-6/src/test/java/org/joor/test/ReflectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
*/
public class ReflectTest {

static final boolean JDK9 = false;
static final boolean JDK9 = false ;

@Rule
public final ExpectedException expectedException = ExpectedException.none();
Expand Down
6 changes: 2 additions & 4 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,8 +47,7 @@ public void testCompileWithClasspathDependency() throws Exception {
assertEquals(new ArrayList<Object>(), v.validateTestClass(null));
}

@Test
@Ignore // [#77]
@Test(expected = Throwable.class) // [#77]
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 @@ -87,8 +86,7 @@ public void testCompileDifferentPackage() {
assertEquals("Hello World!", supplier.get());
}

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

// The class loader will cache the class name by default, so a new content shouldn't affect the type
Expand Down
2 changes: 1 addition & 1 deletion jOOR-java-8/src/test/java/org/joor/test/ReflectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
*/
public class ReflectTest {

static final boolean JDK9 = false;
static final boolean JDK9 = false ;

@Rule
public final ExpectedException expectedException = ExpectedException.none();
Expand Down
6 changes: 2 additions & 4 deletions jOOR/src/test/java/org/joor/test/CompileTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ public void testCompileWithClasspathDependency() throws Exception {
assertEquals(new ArrayList<Object>(), v.validateTestClass(null));
}

@Test
@Ignore // [#77]
@Test(expected = Throwable.class) // [#77]
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 @@ -87,8 +86,7 @@ public void testCompileDifferentPackage() {
assertEquals("Hello World!", supplier.get());
}

@Test
@Ignore // [#76]
@Test(expected = Throwable.class) // [#76]
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 ff36d22

Please sign in to comment.