Created
June 27, 2018 07:56
-
-
Save voghDev/b1ab014829597e965b70c43487caf1c1 to your computer and use it in GitHub Desktop.
Workaround to pass any second parameter to getString(int resId, String... params) method
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
when(mockContext.getString(eq(R.string.string_with_param), any(String.class))).thenReturn("Return value"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment