@@ -0,0 +1,1219 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.%0Apackage com.yahoo.vespa.hosted.controller.api.integration.stubs;%0A%0Aimport com.yahoo.component.AbstractComponent;%0Aimport com.yahoo.vespa.hosted.controller.api.integration.BuildService;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.Collections;%0Aimport java.util.List;%0A%0A/**%0A * @author jvenstad%0A */%0Apublic class MockBuildService extends AbstractComponent implements BuildService %7B%0A%0A    private final List%3CBuildJob%3E jobs = Collections.synchronizedList(new ArrayList%3C%3E());%0A%0A    @Override%0A    public void trigger(BuildJob buildJob) %7B%0A        jobs.add(buildJob);%0A    %7D%0A%0A    @Override%0A    public boolean isRunning(BuildJob buildJob) %7B%0A        return jobs.contains(buildJob);%0A    %7D%0A%0A    /** List all running jobs. */%0A    public List%3CBuildJob%3E jobs() %7B%0A        return new ArrayList%3C%3E(jobs);%0A    %7D%0A%0A    /** Clears all running jobs. */%0A    public void clear() %7B%0A        jobs.clear();%0A    %7D%0A%0A    /** Removes the given job for the given project and returns whether it was found. */%0A    public boolean removeJob(long projectId, String jobType) %7B%0A        return jobs.remove(new BuildJob(projectId, jobType));%0A    %7D%0A%0A%7D%0A

Add file that was lost by IntelliJ