Manually migrate exception assertions in RdeImportUtilsTest

It was easier to simply move these over manually than to try to debug
the automated tooling.

I also changed the case in an exception message.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=178926365
This commit is contained in:
mcilwain 2017-12-13 10:54:24 -08:00 committed by Ben McIlwain
parent 359bab291b
commit 0d3ec66259
2 changed files with 22 additions and 15 deletions

View file

@ -158,10 +158,12 @@ public class RdeImportUtils {
TldState currentState = registry.getTldState(clock.nowUtc());
checkArgument(
currentState == TldState.PREDELEGATION,
String.format("Tld '%s' is in state %s and cannot be imported", tld, currentState));
"TLD '%s' is in state %s and cannot be imported",
tld,
currentState);
} catch (RegistryNotFoundException e) {
throw new IllegalArgumentException(
String.format("Tld '%s' not found in the registry", tld));
String.format("TLD '%s' not found in the registry", tld));
}
// validate that all registrars exist
while (parser.nextRegistrar()) {