mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 10:16:07 +02:00
Inject clock for Tmch validity using InjectRule instead of manually
Basically a less patchy version of [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=202138086
This commit is contained in:
parent
3550045636
commit
b4cb3e0a6f
8 changed files with 14 additions and 20 deletions
|
@ -32,6 +32,7 @@ import google.registry.testing.FakeHttpSession;
|
|||
import google.registry.testing.FakeResponse;
|
||||
import google.registry.testing.InjectRule;
|
||||
import google.registry.testing.ShardableTestCase;
|
||||
import google.registry.tmch.TmchCertificateAuthority;
|
||||
import java.util.Map;
|
||||
import javax.annotation.Nullable;
|
||||
import org.joda.time.DateTime;
|
||||
|
@ -55,7 +56,10 @@ public class EppTestCase extends ShardableTestCase {
|
|||
|
||||
@Before
|
||||
public void initTestCase() {
|
||||
inject.setStaticField(Ofy.class, "clock", clock); // For transactional flows.
|
||||
// For transactional flows
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
// For SignedMark signature validity
|
||||
inject.setStaticField(TmchCertificateAuthority.class, "clock", clock);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue