Replace more deprecated uses of Files methods

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=146260709
This commit is contained in:
cgoldfeder 2017-02-01 10:36:32 -08:00 committed by Ben McIlwain
parent b35ffd4162
commit 90a1f4a24e
4 changed files with 14 additions and 13 deletions

View file

@ -42,7 +42,7 @@ public abstract class CreateOrUpdatePremiumListCommandTestCase<
ArgumentCaptor<byte[]> requestBodyCaptor;
static String generateInputData(String premiumTermsPath) throws Exception {
return Files.toString(new File(premiumTermsPath), StandardCharsets.UTF_8);
return Files.asCharSource(new File(premiumTermsPath), StandardCharsets.UTF_8).read();
}
void verifySentParams(