Locale during unit test on Android
问题 I have some code I want to test. I want to check if a String is properly composed out of various strings that I have in resources. The challenge here is to deal with multiple translations in my resources. I know that locale can be an issue when testing a desktop application and that it is recommended that you create locale-independent tests. I've found that you can set the locale programatically, but it was not recommended (see Change language programmatically in Android). While this question