forked from mockito/mockito
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request mockito#931 from tmurakami/fix_issue_929
Fixes mockito#929: Move the resources directory to src/main
- Loading branch information
Showing
4 changed files
with
34 additions
and
0 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
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
subprojects/inline/src/test/java/org/mockitoinline/FinalClassMockingTest.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,17 @@ | ||
package org.mockitoinline; | ||
|
||
import org.junit.Test; | ||
import org.mockito.Mockito; | ||
|
||
public class FinalClassMockingTest { | ||
|
||
@Test | ||
public void no_exception_while_mocking_final_class() throws Exception { | ||
Mockito.mock(FinalClass.class); | ||
} | ||
|
||
private static final class FinalClass { | ||
|
||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
subprojects/inline/src/test/java/org/mockitoinline/PluginTest.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,16 @@ | ||
package org.mockitoinline; | ||
|
||
import org.junit.Test; | ||
import org.mockito.internal.configuration.plugins.Plugins; | ||
import org.mockito.internal.creation.bytebuddy.InlineByteBuddyMockMaker; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
public class PluginTest { | ||
|
||
@Test | ||
public void plugin_type_should_be_inline() throws Exception { | ||
assertTrue(Plugins.getMockMaker() instanceof InlineByteBuddyMockMaker); | ||
} | ||
|
||
} |