mirror of
https://github.com/google/nomulus.git
synced 2025-05-21 03:39:36 +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
|
@ -73,8 +73,8 @@ public class UpdateSmdCommandTest extends CommandTestCase<UpdateSmdCommand> {
|
|||
|
||||
@Before
|
||||
public void init() {
|
||||
// Setting the clock used for SignedMark signature validity.
|
||||
TmchCertificateAuthority.clock = () -> DateTime.parse("2015-01-01TZ");
|
||||
// For SignedMark signature validity
|
||||
inject.setStaticField(TmchCertificateAuthority.class, "clock", clock);
|
||||
inject.setStaticField(Ofy.class, "clock", clock);
|
||||
createTld("xn--q9jyb4c");
|
||||
clock.advanceOneMilli();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue