Fix method call that requires it's arg checked

Fix a verification call to a method that requires it's arg checked that is
breaking in the FOSS build.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=164974785
This commit is contained in:
mmuller 2017-08-11 07:08:48 -07:00 committed by Ben McIlwain
parent e45010f667
commit 5653b2f479

View file

@ -301,7 +301,9 @@ public class RdeImportUtilsTest extends ShardableTestCase {
xmlInput = DEPOSIT_XML.openBufferedStream();
when(gcsUtils.openInputStream(any(GcsFilename.class))).thenReturn(xmlInput);
rdeImportUtils.validateEscrowFileForImport("valid-deposit-file.xml");
verify(gcsUtils).openInputStream(new GcsFilename("import-bucket", "valid-deposit-file.xml"));
// stored to avoid an error in FOSS build, marked "CheckReturnValue"
InputStream unusedResult = verify(gcsUtils).openInputStream(
new GcsFilename("import-bucket", "valid-deposit-file.xml"));
}
/** Verifies thrown error when tld in escrow file is not in the registry */