com.google.gwt.junit
Enum Platform
java.lang.Object
java.lang.Enum<Platform>
com.google.gwt.junit.Platform
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Platform>
public enum Platform
- extends java.lang.Enum<Platform>
An enum to indicate the Platform where a test should run. In general, it
should be able to represent a large matrix such as: Browser * Os_combo *
{hosted, web} * {htmlUnit, actual_browser}.
For HtmlUnit, we distinguish among three categories of failures:
HtmlUnitBug: Gwt tests that are failing due to a bug in HtmlUnit.
Ideally, these must be accompanied by a bug report on the HtmlUnit issue
tracker.
HtmlUnitLayout: Gwt tests that test layout. HtmlUnit does not use
a layout engine, though some simple layout tests do pass with HtmlUnit.
HtmlUnitUnknown: Gwt tests whose failures have not been
investigated yet.
|
Method Summary |
static Platform |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
| Methods inherited from class java.lang.Enum |
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, obfuscatedName, ordinal, toString, valueOf, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass |
Devel
public static final Platform Devel
HtmlUnitBug
public static final Platform HtmlUnitBug
HtmlUnitLayout
public static final Platform HtmlUnitLayout
HtmlUnitUnknown
public static final Platform HtmlUnitUnknown
Prod
public static final Platform Prod
values
public static Platform[] 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 (Platform c : Platform.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Platform valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.