/**
 * JBoss, Home of Professional Open Source.
 * Copyright 2014 Red Hat, Inc., and individual contributors
 * as indicated by the @author tags.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.jboss.pnc.mavenrepositorymanager.fixture;

import org.jboss.pnc.spi.repositorymanager.BuildExecution;

import java.net.URI;

public class TestBuildExecution implements BuildExecution {

    private int id = 1;

    private String topContentId;

    private String buildSetContentId;

    private String buildContentId;

    private String projectName = "my project";

    private boolean isSetBuild;

    private URI logsWebSocketLink;

    public TestBuildExecution(String topId, String setId, String buildId, boolean isSetBuild) {
        this.topContentId = topId;
        this.buildSetContentId = setId;
        this.buildContentId = buildId;
        this.isSetBuild = isSetBuild;
    }

    public TestBuildExecution() {
        this("product+myproduct+1-0", null, "build+myproject+12345", false);
    }

    public int getId() {
        return id;
    }

    @Override
    public String getBuildContentId() {
        return buildContentId;
    }

    public void setTopContentId(String topContentId) {
        this.topContentId = topContentId;
    }

    public void setBuildSetContentId(String buildSetContentId) {
        this.buildSetContentId = buildSetContentId;
    }

    public void setBuildContentId(String buildContentId) {
        this.buildContentId = buildContentId;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

}

@@ -816,30 +816,8 @@
 n;%0A%0A
-import java.net.URI;%0A%0A
 publ
@@ -902,42 +902,8 @@
 1;%0A%0A
-    private String topContentId;%0A%0A
     
@@ -914,35 +914,32 @@
 ate String build
-Set
 ContentId;%0A%0A    
@@ -943,326 +943,50 @@
    p
-rivate String buildContentId;%0A%0A    private String projectName = %22my project%22;%0A%0A    private boolean isSetBuild;%0A%0A    private URI logsWebSocketLink;%0A%0A    public TestBuildExecution(String topId, String setId, String buildId, boolean isSetBuild) %7B%0A        this.topContentId = topId;%0A        this.buildSetContentId = setId;
+ublic TestBuildExecution(String buildId) %7B
 %0A   
@@ -1025,46 +1025,8 @@
 Id;%0A
-        this.isSetBuild = isSetBuild;%0A
     
@@ -1079,39 +1079,8 @@
 his(
-%22product+myproduct+1-0%22, null, 
 %22bui
@@ -1102,15 +1102,8 @@
 345%22
-, false
 );%0A 
@@ -1254,447 +1254,6 @@
   %7D%0A
-%0A    public void setTopContentId(String topContentId) %7B%0A        this.topContentId = topContentId;%0A    %7D%0A%0A    public void setBuildSetContentId(String buildSetContentId) %7B%0A        this.buildSetContentId = buildSetContentId;%0A    %7D%0A%0A    public void setBuildContentId(String buildContentId) %7B%0A        this.buildContentId = buildContentId;%0A    %7D%0A%0A    public void setProjectName(String projectName) %7B%0A        this.projectName = projectName;%0A    %7D%0A%0A
 %7D%0A

Clean up maven repo manager fixture.