org.sourceforge.jemm.weaver.transformation
Class ShadowTransformationTest

java.lang.Object
  extended by org.sourceforge.jemm.weaver.DefaultTestCase
      extended by org.sourceforge.jemm.weaver.transformation.ShadowTransformationTest

public class ShadowTransformationTest
extends DefaultTestCase

Test for ShadowTransformation

Author:
Paul Keeble

Constructor Summary
ShadowTransformationTest()
           
 
Method Summary
 void fieldExists()
          Tests that the basic field is created private and transient.
 void initialiserWorks()
          Compiles a Dummy Class called ShadowDummy (LifeCycleListenerDummy) which is then used reflectively to create an object.
 
Methods inherited from class org.sourceforge.jemm.weaver.DefaultTestCase
checkedExceptionThrowingConstructorClass, childDummyClass, cleanupClassPool, containedDummyClass, emptyClass, exceptionThrowingConstructorClass, hackClassPath, initialiseClass, initialiseSession, loadClass, methodClass, methodJEMMObjectAccess, referenceArrayClass, referenceClass, synchronizedBlockDummyClass, unconvertedContainedDummyClass, unloadClass, unsupportedDummyClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowTransformationTest

public ShadowTransformationTest()
Method Detail

fieldExists

public void fieldExists()
                 throws javassist.NotFoundException
Tests that the basic field is created private and transient. and that its got an initialiser.

Throws:
javassist.NotFoundException

initialiserWorks

public void initialiserWorks()
                      throws javassist.NotFoundException,
                             javassist.CannotCompileException,
                             java.lang.InstantiationException,
                             java.lang.IllegalAccessException,
                             java.lang.SecurityException,
                             java.lang.NoSuchFieldException
Compiles a Dummy Class called ShadowDummy (LifeCycleListenerDummy) which is then used reflectively to create an object. This object should contain a value.

Throws:
javassist.NotFoundException
javassist.CannotCompileException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchFieldException


Copyright © 2009. All Rights Reserved.