summaryrefslogtreecommitdiffstats
path: root/controller-server/src/test
diff options
context:
space:
mode:
authorJon Marius Venstad <jvenstad@yahoo-inc.com>2017-11-07 16:02:58 +0100
committerJon Marius Venstad <jvenstad@yahoo-inc.com>2017-11-07 16:02:58 +0100
commit504c1ffef0d53aba32a2980886f42f8f4c7ccb64 (patch)
treedc433a8d551cc1140356909dce42037f4a701ce1 /controller-server/src/test
parent1beeb8cede61e0228dc7711fc5a5f8671dbd1731 (diff)
Reverted fix
Diffstat (limited to 'controller-server/src/test')
-rw-r--r--controller-server/src/test/java/com/yahoo/vespa/hosted/controller/ControllerTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/ControllerTest.java b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/ControllerTest.java
index f6a650e71be..02cb42fb355 100644
--- a/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/ControllerTest.java
+++ b/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/ControllerTest.java
@@ -480,6 +480,16 @@ public class ControllerTest {
assertEquals(expectedStatus, existingStatus);
}
+ private JobReport mockReport(Application application, JobType jobType, Optional<JobError> jobError) {
+ return new JobReport(
+ application.id(),
+ jobType,
+ application.deploymentJobs().projectId().get(),
+ 42,
+ jobError
+ );
+ }
+
@Test
public void testGlobalRotations() throws IOException {
// Setup tester and app def