// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.config.server.deploy;

import com.yahoo.config.provision.ApplicationId;
import com.yahoo.config.provision.Deployment;

import java.time.Duration;
import java.util.Optional;

/**
 * @author lulf
 */
public class MockDeployer implements com.yahoo.config.provision.Deployer {

    public ApplicationId lastDeployed;

    @Override
    public Optional<Deployment> deployFromLocalActive(ApplicationId application) {
        return deployFromLocalActive(application, Duration.ofSeconds(60));
    }

    @Override
    public Optional<Deployment> deployFromLocalActive(ApplicationId application, Duration timeout) {
        lastDeployed = application;
        return Optional.empty();
    }

}

@@ -282,16 +282,42 @@
 ration;%0A
+import java.time.Instant;%0A
 import j
@@ -846,10 +846,137 @@
 %0A    %7D%0A%0A
+    @Override%0A    public Optional%3CInstant%3E lastDeployTime(ApplicationId application) %7B%0A        return Optional.empty();%0A    %7D%0A%0A
 %7D%0A

Implement additional method