Enum Theme
- java.lang.Object
-
- java.lang.Enum<Theme>
-
- org.junit.platform.console.options.Theme
-
- All Implemented Interfaces:
Serializable
,Comparable<Theme>
@API(status=INTERNAL, since="1.0") public enum Theme extends Enum<Theme>
- Since:
- 1.0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
aborted()
String
blank()
String
end()
String
entry()
String
failed()
String
root()
String
skipped()
String
status(TestExecutionResult result)
String
successful()
String
toString()
Return lower caseEnum.name()
for easier usage in help text for available options.static Theme
valueOf(String name)
Returns the enum constant of this type with the specified name.static Theme
valueOf(Charset charset)
Returns the enum constant of this type with the specified name.static Theme[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.String
vertical()
-
-
-
Enum Constant Detail
-
ASCII
public static final Theme ASCII
ASCII 7-bit characters form the tree branch.Example test plan execution tree:
+-- engine alpha | '-- container BEGIN | +-- test 00 [OK] | '-- test 01 [OK] '-- engine omega +-- container END | +-- test 10 [OK] | '-- test 11 [A] aborted '-- container FINAL +-- skipped [S] because '-- failing [X] BäMM
-
UNICODE
public static final Theme UNICODE
Unicode (extended ASCII) characters are used to display the test execution tree.Example test plan execution tree:
├─ engine alpha ✔ │ └─ container BEGIN ✔ │ ├─ test 00 ✔ │ └─ test 01 ✔ └─ engine omega ✔ ├─ container END ✔ │ ├─ test 10 ✔ │ └─ test 11 ■ aborted └─ container FINAL ✔ ├─ skipped ↷ because └─ failing ✘ BäMM
-
-
Method Detail
-
values
public static Theme[] 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 (Theme c : Theme.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Theme 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 nameNullPointerException
- if the argument is null
-
valueOf
public static Theme valueOf(Charset charset)
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:
charset
- 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 nameNullPointerException
- if the argument is null
-
root
public final String root()
-
vertical
public final String vertical()
-
blank
public final String blank()
-
entry
public final String entry()
-
end
public final String end()
-
successful
public final String successful()
-
aborted
public final String aborted()
-
failed
public final String failed()
-
skipped
public final String skipped()
-
status
public final String status(TestExecutionResult result)
-
toString
public final String toString()
Return lower caseEnum.name()
for easier usage in help text for available options.
-
-