
public final class InstrumentationScanner extends Object
| Constructor and Description |
|---|
InstrumentationScanner() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDeploymentName(Method method)
Gets the name of deployment from the deployment method.
|
static InstrumentationConfiguration |
getInstrumentationConfiguration(Method method)
Gets the instrumentation configuration from the deployment method which is annotated by
Instrumentable. |
static Map<String,InstrumentationConfiguration> |
scan(org.jboss.arquillian.test.spi.TestClass testClass)
Scans
@Deployment methods in test case and resolves instrumentation logic. |
static boolean |
validate(Map<String,InstrumentationConfiguration> instrumentation)
Validates instrumentation mapping.
|
public static Map<String,InstrumentationConfiguration> scan(org.jboss.arquillian.test.spi.TestClass testClass) throws InstrumentationMapperException
@Deployment methods in test case and resolves instrumentation logic.testClass - test class to get the instrumentation mapping fromInstrumentationMapperException - when validate(Map) on the parsed mapping failsIllegalArgumentException - if testClass is a null objectpublic static boolean validate(Map<String,InstrumentationConfiguration> instrumentation) throws InstrumentationMapperException
it.equals(another).instrumentation - instrumentation is valid, false otherwise.InstrumentationMapperException - if mapping is invalidpublic static String getDeploymentName(Method method)
method - a method to get the deployment name frommethod as a stringIllegalArgumentException - if method is null or if it is not annotated by @Deployment or ifpublic static InstrumentationConfiguration getInstrumentationConfiguration(Method method)
Instrumentable.method - a method to get the instrumentation configuration frommethodIllegalArgumentException - if method is null or if it is not annotated by @InstrumentableCopyright © 2014 JBoss by Red Hat. All rights reserved.