Prefer @Inject over static for async flow Clock

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122555766
This commit is contained in:
Chris Tingue
2016-05-18 13:08:41 -04:00
committed by Justine Tunney
parent 767c00c2ca
commit 4854f875b0
2 changed files with 2 additions and 6 deletions
@@ -76,8 +76,8 @@ public abstract class DeleteEppResourceActionTestCase<T extends DeleteEppResourc
action = deleteEppResourceAction;
action.mrRunner = new MapreduceRunner(Optional.<Integer>absent(), Optional.<Integer>absent());
action.response = new FakeResponse();
action.clock = clock;
inject.setStaticField(Ofy.class, "clock", clock);
inject.setStaticField(DeleteEppResourceAction.class, "clock", clock);
createTld("tld");
contactUsed = persistActiveContact("blah1234");