public enum TestCaseImportance extends Enum<TestCaseImportance> implements Level, org.squashtest.tm.core.foundation.i18n.Abbreviated
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeOfCriticalityCanChangeImportanceAuto(RequirementCriticality oldRequirementCriticality,
RequirementCriticality newCriticality)
will check if the change of criticality of the associated requirement can change the auto-computed testCase
importance (this)
|
TestCaseImportance |
deduceNewImporanceWhenAddCriticality(RequirementCriticality newCriticality)
will deduce the new TestCase importance when a new RequirementCriticality has been added to the associated
RequirementCriticality list of the TestCase.
|
static TestCaseImportance |
deduceTestCaseImportance(List<RequirementCriticality> rCriticalities) |
static TestCaseImportance |
defaultValue() |
String |
getAbbreviatedI18nKey() |
String |
getI18nKey()
(non-Javadoc)
|
int |
getLevel() |
static TestCaseImportance |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestCaseImportance[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestCaseImportance VERY_HIGH
public static final TestCaseImportance HIGH
public static final TestCaseImportance MEDIUM
public static final TestCaseImportance LOW
public static TestCaseImportance[] values()
for (TestCaseImportance c : TestCaseImportance.values()) System.out.println(c);
public static TestCaseImportance valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getI18nKey()
getI18nKey in interface org.squashtest.tm.core.foundation.i18n.InternationalizableInternationalizable.getI18nKey()public String getAbbreviatedI18nKey()
getAbbreviatedI18nKey in interface org.squashtest.tm.core.foundation.i18n.Abbreviatedpublic static TestCaseImportance defaultValue()
public static TestCaseImportance deduceTestCaseImportance(List<RequirementCriticality> rCriticalities)
rCriticalities - a list of requirement criticalitiespublic TestCaseImportance deduceNewImporanceWhenAddCriticality(RequirementCriticality newCriticality)
newCriticality - the new requirement criticality that might change the importanceoldImportance - the ancient importance of the test casepublic boolean changeOfCriticalityCanChangeImportanceAuto(RequirementCriticality oldRequirementCriticality, RequirementCriticality newCriticality)
oldRequirementCriticality - newCriticality - Copyright © 2010–2016 Henix, henix.fr. All rights reserved.