aboutsummaryrefslogtreecommitdiffstats
path: root/testutil/src
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-06-10 00:32:15 +0200
committerJon Bratseth <bratseth@gmail.com>2022-06-10 00:32:15 +0200
commitb93c5f1c3a7ac931fa5e4870b51e21a8733b9b06 (patch)
tree504068128b143852f60ea43bdad2dbc9e2097493 /testutil/src
parente6fbda2d8f7c9e7222cd7ccd8677a30b6152858a (diff)
Restore inject
Diffstat (limited to 'testutil/src')
-rw-r--r--testutil/src/main/java/com/yahoo/test/ManualClock.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/testutil/src/main/java/com/yahoo/test/ManualClock.java b/testutil/src/main/java/com/yahoo/test/ManualClock.java
index c8e9314cb26..d946101412d 100644
--- a/testutil/src/main/java/com/yahoo/test/ManualClock.java
+++ b/testutil/src/main/java/com/yahoo/test/ManualClock.java
@@ -1,6 +1,7 @@
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.test;
+import com.yahoo.component.annotation.Inject;
import java.time.Clock;
import java.time.Instant;
import java.time.LocalDateTime;
@@ -19,6 +20,7 @@ public class ManualClock extends Clock {
private final AtomicReference<Instant> currentTime = new AtomicReference<>(Instant.now());
+ @Inject
public ManualClock() {}
public ManualClock(String utcIsoTime) {