mirror of
https://github.com/google/nomulus.git
synced 2025-07-31 15:06:29 +02: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:
parent
e45010f667
commit
5653b2f479
1 changed files with 3 additions and 1 deletions
|
@ -301,7 +301,9 @@ public class RdeImportUtilsTest extends ShardableTestCase {
|
||||||
xmlInput = DEPOSIT_XML.openBufferedStream();
|
xmlInput = DEPOSIT_XML.openBufferedStream();
|
||||||
when(gcsUtils.openInputStream(any(GcsFilename.class))).thenReturn(xmlInput);
|
when(gcsUtils.openInputStream(any(GcsFilename.class))).thenReturn(xmlInput);
|
||||||
rdeImportUtils.validateEscrowFileForImport("valid-deposit-file.xml");
|
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 */
|
/** Verifies thrown error when tld in escrow file is not in the registry */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue