title: Locale during unit test on Android
body: <p>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.</p>
  
  <p>I've found that you can set the locale programatically, but it was not recommended (see <a href="https://stackoverflow.com/questions/2900023/change-language-programatically-in-android">Change language programmatically in Android</a>). While this question is aimed at changing locale at runtime when running an app normally, I was wondering if there was a better solution to my problem.</p>