1 8 package test; 9 10 import junit.framework.TestCase; 11 import org.codehaus.aspectwerkz.reflect.ClassInfo; 12 import org.codehaus.aspectwerkz.reflect.impl.java.JavaClassInfo; 13 14 15 19 public class DynamicDeploymentTest extends TestCase implements Loggable { 20 private static final String ASPECT_NAME = "test.aspect.DynamicDeploymentTestAspect"; 21 22 private static final String NEW_ASPECT_NAME = "test.aspect.DynamicallyCreatedAspect"; 23 24 private String m_logString = ""; 25 26 private ClassInfo m_classMetaData = JavaClassInfo.getClassInfo(DynamicDeploymentTest.class); 27 28 public DynamicDeploymentTest(String name) { 29 super(name); 30 } 31 32 34 162 public static void main(String [] args) { 163 junit.textui.TestRunner.run(suite()); 164 } 165 166 public static junit.framework.Test suite() { 167 return new junit.framework.TestSuite(DynamicDeploymentTest.class); 168 } 169 170 public void log(final String wasHere) { 171 m_logString += wasHere; 172 } 173 174 public void reorderAdvicesTestMethod() { 175 log("invocation "); 176 } 177 178 public void removeAdviceTestMethod() { 179 log("invocation "); 180 } 181 182 public void addAdviceTestMethod() { 183 log("invocation "); 184 } 185 186 public void createAspectTestMethod() { 187 log("invocation "); 188 } 189 } | Popular Tags |