org.squashtest.csp.tm.domain.campaign
Enum TestPlanStatus
java.lang.Object
java.lang.Enum<TestPlanStatus>
org.squashtest.csp.tm.domain.campaign.TestPlanStatus
- All Implemented Interfaces:
- Serializable, Comparable<TestPlanStatus>, org.squashtest.tm.core.foundation.i18n.Internationalizable
public enum TestPlanStatus
- extends Enum<TestPlanStatus>
- implements org.squashtest.tm.core.foundation.i18n.Internationalizable
DONE
public static final TestPlanStatus DONE
READY
public static final TestPlanStatus READY
RUNNING
public static final TestPlanStatus RUNNING
values
public static TestPlanStatus[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TestPlanStatus c : TestPlanStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TestPlanStatus valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getStatus
public static TestPlanStatus getStatus(TestPlanStatistics statistics)
- Parameters:
statistics - a TestPlanStatistics
- Returns:
- DONE if all test-plan-item are "untestable", "failed", "success" or "blocked"
READY if all test-plan item are "ready"
RUNNING otherwise
getI18nKey
public String getI18nKey()
- Specified by:
getI18nKey in interface org.squashtest.tm.core.foundation.i18n.Internationalizable
Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.