public enum MessageTypes extends java.lang.Enum<MessageTypes>
Enum Constant and Description |
---|
Fail |
Info |
Pass |
TestStep |
TestStepFail |
TestStepPass |
Warn |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatMessage(java.lang.String message)
Get message in HTML format for the type.
|
java.lang.String |
formatText(java.lang.String message)
Get message in text format for this type.
|
boolean |
isFailure() |
boolean |
shouldReport() |
static MessageTypes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MessageTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageTypes Info
public static final MessageTypes Pass
public static final MessageTypes Warn
public static final MessageTypes Fail
public static final MessageTypes TestStep
public static final MessageTypes TestStepPass
public static final MessageTypes TestStepFail
public static MessageTypes[] values()
for (MessageTypes c : MessageTypes.values()) System.out.println(c);
public static MessageTypes valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String formatMessage(java.lang.String message)
message
- : message to be formatedpublic java.lang.String formatText(java.lang.String message)
message
- : message to be formatedpublic boolean isFailure()
public boolean shouldReport()
Copyright © 2000 Infostretch Corp.