From 85911e0b95e9c498e861617827cdc8604d360f63 Mon Sep 17 00:00:00 2001 From: mcilwain Date: Tue, 22 Mar 2016 11:12:06 -0700 Subject: [PATCH] Rely less on local variables in UpdateRegistrarCommandTest Reloading the entities under test every time is more resilient to coding errors than trying to ensure that a local variable is kept up to date. It also reduces total LoC in the test file. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117842135 --- .../tools/UpdateRegistrarCommandTest.java | 229 +++++++----------- 1 file changed, 94 insertions(+), 135 deletions(-) diff --git a/javatests/com/google/domain/registry/tools/UpdateRegistrarCommandTest.java b/javatests/com/google/domain/registry/tools/UpdateRegistrarCommandTest.java index 20aeb8166..319bc30d8 100644 --- a/javatests/com/google/domain/registry/tools/UpdateRegistrarCommandTest.java +++ b/javatests/com/google/domain/registry/tools/UpdateRegistrarCommandTest.java @@ -44,94 +44,88 @@ public class UpdateRegistrarCommandTest extends CommandTestCase