summaryrefslogtreecommitdiffstats
path: root/testutil
diff options
context:
space:
mode:
Diffstat (limited to 'testutil')
-rw-r--r--testutil/pom.xml5
-rw-r--r--testutil/src/main/java/com/yahoo/test/ManualClock.java2
2 files changed, 7 insertions, 0 deletions
diff --git a/testutil/pom.xml b/testutil/pom.xml
index bd46d2e4c16..8d132737852 100644
--- a/testutil/pom.xml
+++ b/testutil/pom.xml
@@ -20,6 +20,11 @@
<scope>provided</scope>
</dependency>
<dependency>
+ <groupId>com.google.inject</groupId>
+ <artifactId>inject</artifactId>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
<scope>compile</scope>
diff --git a/testutil/src/main/java/com/yahoo/test/ManualClock.java b/testutil/src/main/java/com/yahoo/test/ManualClock.java
index 1ffc7aa77da..e3ed647e03b 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 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.test;
+import com.google.inject.Inject;
import java.time.Clock;
import java.time.Instant;
import java.time.LocalDateTime;
@@ -14,6 +15,7 @@ public class ManualClock extends Clock {
private Instant currentTime = Instant.now();
+ @Inject
public ManualClock() {}
public ManualClock(String utcIsoTime) {