Created
April 4, 2017 07:44
-
-
Save goofyahead/09d4966924fa48e66ae96ff8254b33ea to your computer and use it in GitHub Desktop.
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
@Module | |
public class FlombulatorTestModule { | |
@Provides | |
Flumbolator provideTestFlombulator() { | |
System.out.println("I the mocked flumbolator have been summoned, behold my mock power"); | |
Flumbolator flum = Mockito.mock(Flumbolator.class); | |
when(flum.frumbolateMe()).thenReturn("flumbolate test"); | |
return flum; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment