public class EclipseTestTransformer extends Object implements ClassFileTransformer
Modifier and Type | Field and Description |
---|---|
static String |
CLASSLOADER_DEPLOYED_XML
If running from within Eclipse with the -javaagent:eclipse-agent.jar switch set, the EclipseTestTransformer weaves the
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner class to set this system property to the name of the test class
run.
|
Constructor and Description |
---|
EclipseTestTransformer() |
Modifier and Type | Method and Description |
---|---|
static void |
deployXmlForEclipse(String testClass)
This will be initiated from the woven RemoteTestRunner classs to deploy the xml for the testcase UNLESS
the jboss.aop.path system property has been set.
|
static void |
recordClassNameAndDeployXml(String[] args) |
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
public static final String CLASSLOADER_DEPLOYED_XML
public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform
in interface ClassFileTransformer
IllegalClassFormatException
public static void recordClassNameAndDeployXml(String[] args) throws Exception
Exception
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.