public Requirement withParent(String parent) { return new Requirement(this.name, this.displayName, this.cardNumber, parent, this.type, this.narrative, children, examples, releaseVersions, customFields, featureFileName); }
public Requirement withReleaseVersions(List<String> releaseVersions) { return new Requirement(this.name, this.id, this.displayName, this.cardNumber, this.parent, this.type, this.path, this.narrative, children, examples, releaseVersions, customFields, featureFileName, this.tags); }
public Requirement withPath(String path) { return new Requirement(this.name, this.id, this.displayName, this.cardNumber, this.parent, this.type, path, this.narrative, children, examples, releaseVersions, customFields, featureFileName, this.tags); }
public Requirement withParent(String parent) { return new Requirement(this.name, this.displayName, this.cardNumber, parent, this.type, this.narrative, children, examples, releaseVersions); }
public Requirement withChildren(List<Requirement> children) { return new Requirement(this.name, this.id, this.displayName, this.cardNumber, this.parent, this.type, this.path, this.narrative, children, examples, releaseVersions, customFields, featureFileName, this.tags); }
public Requirement withExamples(List<Example> examples) { return new Requirement(this.name, this.id, this.displayName, this.cardNumber, this.parent, this.type, this.path, this.narrative, children, examples, releaseVersions, customFields, featureFileName, this.tags); }
public Requirement withCustomFields(List<CustomFieldValue> customFields) { return new Requirement(this.name, this.id, this.displayName, this.cardNumber, this.parent, this.type, this.path, this.narrative, children, examples, releaseVersions, customFields, featureFileName, this.tags); }
public Requirement withType(String type) { return new Requirement(this.name, this.displayName, this.cardNumber, this.parent, type, this.narrative, children, examples, releaseVersions); }
public Requirement withExamples(List<Example> examples) { return new Requirement(this.name, this.displayName, this.cardNumber, this.parent, this. type,this.narrative, children, examples, releaseVersions); }
public Requirement definedInFile(File featureFile) { return new Requirement(this.name, this.displayName, this.cardNumber, this.parent, this.type, this.narrative, this.children, this.examples, this.releaseVersions, this.customFields, featureFile.getName()); }
public Requirement withExample(Example example) { List<Example> updatedExamples = Lists.newArrayList(examples); updatedExamples.add(example); return new Requirement(this.name, this.displayName, this.cardNumber, this.parent, this.type, this.narrative, children, updatedExamples, releaseVersions); }
public Requirement withExample(Example example) { List<Example> updatedExamples = Lists.newArrayList(examples); updatedExamples.add(example); return new Requirement(this.name, this.displayName, this.cardNumber, this.parent, this.type, this.narrative, children, updatedExamples, releaseVersions, customFields, featureFileName); }
public Requirement withExample(Example example) { List<Example> updatedExamples = new ArrayList<>(examples); updatedExamples.add(example); return new Requirement(this.name, this.id, this.displayName, this.cardNumber, this.parent, this.type, this.path, this.narrative, children, updatedExamples, releaseVersions, customFields, featureFileName, this.tags); }
public Requirement withChild(Requirement child) { List<Requirement> newChildren = Lists.newArrayList(children); newChildren.remove(child); newChildren.add(child); return new Requirement(name,displayName,cardNumber,parent, type, narrative, newChildren, examples,releaseVersions); }
public Requirement withChild(Requirement child) { List<Requirement> newChildren = Lists.newArrayList(children); newChildren.remove(child); newChildren.add(child); return new Requirement(name,displayName,cardNumber,parent, type, narrative, newChildren, examples,releaseVersions); }
public Requirement withChild(Requirement child) { List<Requirement> newChildren = new ArrayList(children); newChildren.remove(child); newChildren.add(child); return new Requirement(name, id, displayName,cardNumber,parent, type, narrative, newChildren, examples,releaseVersions).withTags(this.tags); }
public Requirement setTo(String value, String renderedValue) { List<CustomFieldValue> customFields = Lists.newArrayList(requirement.getCustomFieldValues()); customFields.add(new CustomFieldValue(fieldName, value, renderedValue)); return new Requirement(requirement.name, requirement.displayName, requirement.cardNumber, requirement.parent, requirement.type, requirement.narrative, requirement.children, requirement.examples, requirement.releaseVersions, customFields); }
public Requirement setTo(String value, String renderedValue) { List<CustomFieldValue> customFields = Lists.newArrayList(requirement.getCustomFieldValues()); customFields.add(new CustomFieldValue(fieldName, value, renderedValue)); return new Requirement(requirement.name, requirement.displayName, requirement.cardNumber, requirement.parent, requirement.type, requirement.narrative, requirement.children, requirement.examples, requirement.releaseVersions, customFields); }
public Requirement withNarrative(String narrativeText) { return new Requirement(this.name, this.id, this.displayName, this.cardNumber, parent, this.type, this.path, new CustomFieldValue("Narrative", narrativeText), children, examples, releaseVersions, customFields, featureFileName, tags); }
public Requirement withNarrative(String narrativeText) { String nonLifecycleNarrativeText = nonLifecycle(narrativeText); String name = requirementBuilderNameStep.name; String displayName = requirementBuilderNameStep.displayName; String cardNumber = requirementBuilderNameStep.cardNumber; String parent = requirementBuilderNameStep.parent; String id = requirementBuilderNameStep.id; return new Requirement(name, id, displayName, cardNumber, parent, type, new CustomFieldValue("Narrative", nonLifecycleNarrativeText)); }