package com.modesteam.urutau.builder;

import com.modesteam.urutau.model.Artifact;
import com.modesteam.urutau.model.Epic;
import com.modesteam.urutau.model.Feature;
import com.modesteam.urutau.model.User;

public class ArtifactBuilder {
	private String title;
	private String description;
	private Long id;
	
	public ArtifactBuilder title(String title){
		this.title = title;
		return this;
	}
	
	public ArtifactBuilder description(String description){
		this.description = description;
		return this;
	}
	
	public ArtifactBuilder id(Long id) {
		this.id = id;
		return this;
	}
	
	
	public Epic buildEpic(){
		Epic epic = new Epic();
		epic.setId(id);
		epic.setTitle(title);
		epic.setDescription(description);
		return epic;
	}
	
	public Feature buildFeature(){
		Feature feature = new Feature();
		feature.setId(id);
		feature.setTitle(title);
		feature.setDescription(description);
		return feature;
	}

	

}

package com.modesteam.urutau.builder;

import com.modesteam.urutau.model.Artifact;
import com.modesteam.urutau.model.Epic;
import com.modesteam.urutau.model.Feature;
import com.modesteam.urutau.model.Storie;
import com.modesteam.urutau.model.UseCase;
import com.modesteam.urutau.model.User;

public class ArtifactBuilder {
	private String title;
	private String description;
	private Long id;
	
	public ArtifactBuilder title(String title){
		this.title = title;
		return this;
	}
	
	public ArtifactBuilder description(String description){
		this.description = description;
		return this;
	}
	
	public ArtifactBuilder id(Long id) {
		this.id = id;
		return this;
	}
	
	
	public Epic buildEpic(){
		Epic epic = new Epic();
		epic.setId(id);
		epic.setTitle(title);
		epic.setDescription(description);
		return epic;
	}
	
	public Feature buildFeature(){
		Feature feature = new Feature();
		feature.setId(id);
		feature.setTitle(title);
		feature.setDescription(description);
		return feature;
	}
	
	public Storie buildStorie(){
		Storie storie = new Storie();
		storie.setId(id);
		storie.setTitle(title);
		storie.setDescription(description);
		return storie;
	}
	
	public UseCase buildUseCase(){
		UseCase useCase = new UseCase();
		useCase.setId(id);
		useCase.setTitle(title);
		useCase.setDescription(description);
		return useCase;
	}
	

	

}

Increase ArtifactBuild for Mock Test
Increase ArtifactBuild for Mock Test
