@Component @Scope(value="prototype") public class TestCaseFacility extends Object
| Modifier and Type | Field and Description |
|---|---|
protected MilestoneImportHelper |
milestoneHelper |
protected ValidationFacility |
validator |
| Constructor and Description |
|---|
TestCaseFacility() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Long> |
boundMilestonesIds(Milestoned instr)
Returnd the ids of the milestones to be bound as per test case instruction
|
LogTrain |
createTestCase(TestCaseInstruction instr) |
LogTrain |
deleteTestCase(TestCaseTarget target) |
protected void |
doUpdateCustomFields(Map<String,String> cufValues,
org.squashtest.tm.domain.customfield.BoundEntity bindableEntity) |
protected org.squashtest.tm.domain.customfield.InputType |
getInputTypeFor(String cufCode)
Returns the input type of a customfield given its code.
|
void |
initializeCustomFieldTransator(org.squashtest.tm.service.internal.batchimport.CustomFieldTransator customFieldTransator) |
void |
initializeValidator(ValidationFacility validator) |
protected Map<Long,org.squashtest.tm.domain.customfield.RawValue> |
toAcceptableCufs(Map<String,String> origCufs)
because the service identifies cufs by their id, not their code
also populates the cache (cufIdByCode), and transform the input data in a single string or a collection of string depending on the type of the custom field (Tags on non-tags). |
LogTrain |
updateTestCase(TestCaseInstruction instr) |
@Inject protected MilestoneImportHelper milestoneHelper
protected ValidationFacility validator
public LogTrain createTestCase(TestCaseInstruction instr)
public LogTrain updateTestCase(TestCaseInstruction instr)
public LogTrain deleteTestCase(TestCaseTarget target)
protected final List<Long> boundMilestonesIds(Milestoned instr)
instr - the instruction holding the names of candidate milestonesprotected final Map<Long,org.squashtest.tm.domain.customfield.RawValue> toAcceptableCufs(Map<String,String> origCufs)
protected final org.squashtest.tm.domain.customfield.InputType getInputTypeFor(String cufCode)
cufCode - protected final void doUpdateCustomFields(Map<String,String> cufValues, org.squashtest.tm.domain.customfield.BoundEntity bindableEntity)
public void initializeCustomFieldTransator(org.squashtest.tm.service.internal.batchimport.CustomFieldTransator customFieldTransator)
public void initializeValidator(ValidationFacility validator)
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.