-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve #79 by moving cglib-nodep:3.1 to cglib:3.2.1 and adding asm:5…
….0.4
- Loading branch information
Oli Bye
committed
Jan 25, 2016
1 parent
554c7da
commit 974a9c6
Showing
9 changed files
with
55 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
jmock-legacy/src/test/java/org/jmock/test/unit/lib/legacy/Java8Issue79UnitTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jmock.test.unit.lib.legacy; | ||
|
||
import java.io.File; | ||
|
||
import org.jmock.integration.junit4.JUnitRuleMockery; | ||
import org.jmock.lib.legacy.ClassImposteriser; | ||
import org.junit.Rule; | ||
import org.junit.Test; | ||
|
||
/** | ||
* This used to fail in Java 8 as cglib-nodep used asm:5.0.3 which required jdk<=7 | ||
* Now we use cglib (not cglib-nodep) and override asm to 5.0.4 | ||
* @see https://github.com/jmock-developers/jmock-library/issues/79 | ||
* @see https://github.com/cglib/cglib/issues/20 | ||
*/ | ||
public class Java8Issue79UnitTest { | ||
@Rule | ||
public final JUnitRuleMockery _context = new JUnitRuleMockery() { | ||
{ | ||
setImposteriser(ClassImposteriser.INSTANCE); | ||
} | ||
}; | ||
|
||
@Test | ||
public void testMock() { | ||
_context.mock(File.class); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters