Skip to content

Commit ff36d22

Browse files
committed
[#76] [#77] Don't ignore tests. Expect throwable instead
1 parent 52ec31d commit ff36d22

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

jOOR-java-6/src/test/java/org/joor/test/CompileTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,6 @@
180180

181181

182182

183-
184-
185183

186184

187185

jOOR-java-6/src/test/java/org/joor/test/ReflectTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*/
5656
public class ReflectTest {
5757

58-
static final boolean JDK9 = false;
58+
static final boolean JDK9 = false ;
5959

6060
@Rule
6161
public final ExpectedException expectedException = ExpectedException.none();

jOOR-java-8/src/test/java/org/joor/test/CompileTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public void testCompileWithClasspathDependency() throws Exception {
4747
assertEquals(new ArrayList<Object>(), v.validateTestClass(null));
4848
}
4949

50-
@Test
51-
@Ignore // [#77]
50+
@Test(expected = Throwable.class) // [#77]
5251
public void testCompileLocalInterfaceHierarchy() throws Exception {
5352
I i = Reflect.compile("org.joor.test.CompileTest1", "package org.joor.test; public class CompileTest1 implements org.joor.test.I {}").create().get();
5453
assertEquals("I.m()", i.m());
@@ -87,8 +86,7 @@ public void testCompileDifferentPackage() {
8786
assertEquals("Hello World!", supplier.get());
8887
}
8988

90-
@Test
91-
@Ignore // [#76]
89+
@Test(expected = Throwable.class) // [#76]
9290
public void testRecompileSameClassName() {
9391

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

jOOR-java-8/src/test/java/org/joor/test/ReflectTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
*/
5656
public class ReflectTest {
5757

58-
static final boolean JDK9 = false;
58+
static final boolean JDK9 = false ;
5959

6060
@Rule
6161
public final ExpectedException expectedException = ExpectedException.none();

jOOR/src/test/java/org/joor/test/CompileTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ public void testCompileWithClasspathDependency() throws Exception {
4747
assertEquals(new ArrayList<Object>(), v.validateTestClass(null));
4848
}
4949

50-
@Test
51-
@Ignore // [#77]
50+
@Test(expected = Throwable.class) // [#77]
5251
public void testCompileLocalInterfaceHierarchy() throws Exception {
5352
I i = Reflect.compile("org.joor.test.CompileTest1", "package org.joor.test; public class CompileTest1 implements org.joor.test.I {}").create().get();
5453
assertEquals("I.m()", i.m());
@@ -87,8 +86,7 @@ public void testCompileDifferentPackage() {
8786
assertEquals("Hello World!", supplier.get());
8887
}
8988

90-
@Test
91-
@Ignore // [#76]
89+
@Test(expected = Throwable.class) // [#76]
9290
public void testRecompileSameClassName() {
9391

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

0 commit comments

Comments
 (0)