--- /dev/null
+package mypackage;
+
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+
+public abstract class MyAbstractClass implements MyInterface {
+
+ @Retention(RetentionPolicy.RUNTIME)
+ private @interface MyAspectPresent {
+ }
+
+ public MyAbstractClass() {
+ if (!getClass().isAnnotationPresent(MyAspectPresent.class)) {
+ throw new RuntimeException("MyAspect has not been woven into "
+ + getClass());
+ }
+ }
+
+}
checkWasntFullBuild();
}
+// public void testDeclareAtType_pr149293() {
+// configureBuildStructureModel(true);
+// initialiseProject("PR149293_1");
+// build("PR149293_1");
+// checkCompileWeaveCount(4,5);
+// assertNoErrors();
+// alter("PR149293_1","inc1");
+// build("PR149293_1");
+// assertNoErrors();
+// }
+
/*
public void testRefactoring_pr148285() {
configureBuildStructureModel(true);
File projDir = new File(getWorkingDir(),p);
return new File(projDir,"bin"+File.separator+filename);
}
+
+ private void assertNoErrors() {
+ assertTrue("Should be no errors, but got "+MyTaskListManager.getErrorMessages(),MyTaskListManager.getErrorMessages().size()==0);
+ }
}
\ No newline at end of file