|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.aop.eclipsesupport.EclipseTestTransformer
public class EclipseTestTransformer
A transformer to weave the main method of the org.eclipse.jdt.internal.junit.runner.RemoteTestRunner, so that we can deploy the correct -aop.xml files before the test case class itself is loaded when running within Eclipse FIXME SecurityManager - privileged blocks
Field Summary | |
---|---|
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 Summary | |
---|---|
EclipseTestTransformer()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CLASSLOADER_DEPLOYED_XML
Constructor Detail |
---|
public EclipseTestTransformer()
Method Detail |
---|
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
public static void deployXmlForEclipse(String testClass) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |