mirror of
https://github.com/google/nomulus
synced 2026-04-16 06:27:29 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user