summaryrefslogtreecommitdiffstats
path: root/testutil
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2017-04-25 15:39:27 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2017-04-25 15:39:27 +0200
commitbd36566986e66cf046a1bd3f5abe4cc6b9f4f149 (patch)
tree85d6d418d993211ffdf705900d17ac55fc4c27ac /testutil
parentd46f324c29c7200928f6e5ae9ba8196e7b461849 (diff)
Add /nodes/v2/maintenance
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) {