public enum TestPlatform extends Enum<TestPlatform>
Enum Constant and Description |
---|
ANDROID
Maps to the Android velocity template
|
IOS
Maps to the iOS velocity template
|
MOBILE
Maps to the common mobile velocity template
|
WEB
Maps to the Web velocity template
|
Modifier and Type | Method and Description |
---|---|
String |
getPlatformName() |
String |
getVelocityTemplateToUse() |
static TestPlatform |
identifyPlatform(String platformFromFile)
Utility to map the platform from Page Yaml to
TestPlatform |
static TestPlatform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestPlatform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestPlatform IOS
public static final TestPlatform WEB
public static final TestPlatform ANDROID
public static final TestPlatform MOBILE
public static TestPlatform[] values()
for (TestPlatform c : TestPlatform.values()) System.out.println(c);
public static TestPlatform 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 getPlatformName()
public String getVelocityTemplateToUse()
public static TestPlatform identifyPlatform(String platformFromFile)
TestPlatform
platformFromFile
- - The value for platform read from the Yaml fileTestPlatform
if a valid match is found otherwise nullCopyright © 2016 PayPal Open Source. All rights reserved.