public enum ExtensionModule extends java.lang.Enum<ExtensionModule>
web.hmc.hac.Module types which are web related imply that web classes are required on the classpath.
| Enum Constant and Description |
|---|
HAC
HAC tests in the folder
/hac/testsrc. |
HMC
hMC tests in the folder
/hmc/testsrc. |
STANDARD
Standard tests in the folder
/testsrc. |
WEB
Web tests in the folder
/web/testsrc. |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
containsBackofficeTests(ExtensionInfo extensionInfo)
Check if an extension contains backoffice tests.
|
boolean |
exists(ExtensionInfo extensionInfo)
Check if a module of this extension module type exists in the given extension.
|
java.io.File |
getBasePath(ExtensionInfo extensionInfo)
Get the path where the sources of a module of this type are located in the given extension.
|
java.util.Collection<java.lang.String> |
getRequiredWebExtensions()
Return web related extensions required on the classpath by this extension module type.
|
java.lang.String |
getTestClassFileName()
Get the file name of the XML file where the scanned test classes for modules of this type are stored.
|
protected static boolean |
hacModuleExists(ExtensionInfo extensionInfo)
This function checks if a HAC module exists in the given extension, i.e.
|
boolean |
isWebRelated()
Check if modules of this type are web related and require web libraries on their classpath.
|
boolean |
requiresBackoffice()
Check if modules of this type may require the
backoffice extension. |
static ExtensionModule |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExtensionModule[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static ExtensionModule[] |
values(boolean webRelated)
Get all known extension module types which either are or are not web related.
|
protected static boolean |
webModuleExists(ExtensionInfo extensionInfo)
This function checks if a web module exists in the given extension.
|
public static final ExtensionModule STANDARD
/testsrc. Available in all extensions.public static final ExtensionModule WEB
/web/testsrc. May require the backoffice extension on the
classpath.public static final ExtensionModule HMC
/hmc/testsrc. Always require the hmc extension on the classpath.public static final ExtensionModule HAC
/hac/testsrc. Always require the hac extension on the classpath.public static ExtensionModule[] values()
for (ExtensionModule c : ExtensionModule.values()) System.out.println(c);
public static ExtensionModule 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 nullprotected static boolean webModuleExists(ExtensionInfo extensionInfo)
protected static boolean containsBackofficeTests(ExtensionInfo extensionInfo)
extensionInfo - The extension to check.true if backoffice tests exist in the given extension.protected static boolean hacModuleExists(ExtensionInfo extensionInfo)
public static ExtensionModule[] values(boolean webRelated)
webRelated - true to get only web related module types, false to get only module types
which are not web related.public boolean exists(ExtensionInfo extensionInfo)
public java.io.File getBasePath(ExtensionInfo extensionInfo)
public java.lang.String getTestClassFileName()
public boolean requiresBackoffice()
backoffice extension.public java.util.Collection<java.lang.String> getRequiredWebExtensions()
public boolean isWebRelated()
Copyright © 2018 SAP SE. All Rights Reserved.