package org.aspectj.testing.drivers;
+import org.aspectj.ajdt.internal.core.builder.AjState;
+
import junit.framework.*;
/*
public AjcHarnessTestsUsingJUnit(String name) {
super(name);
}
+
+ /* (non-Javadoc)
+ * @see junit.framework.TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = true;
+ }
+
+ /* (non-Javadoc)
+ * @see junit.framework.TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = false;
+ }
}
import junit.framework.TestResult;
import junit.framework.TestSuite;
+import org.aspectj.ajdt.internal.core.builder.AjState;
import org.aspectj.bridge.IMessage;
import org.aspectj.bridge.IMessageHolder;
import org.aspectj.bridge.MessageHandler;
throw new Error("need to re-init");
}
try {
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = true;
result.startTest(this);
suite.runTest(this, result);
} finally {
result.endTest(this);
suite = null;
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = false;
}
}
}
+ /* (non-Javadoc)
+ * @see org.aspectj.testing.XMLBasedAjcTestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = true;
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = false;
+ }
+
public void test001() throws Exception {
runTest("expect class added in initial incremental tests");
nextIncrement(false);
protected void setUp() throws Exception {
super.setUp();
AjdeInteractionTestbed.VERBOSE = VERBOSE;
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = true;
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ AjState.FORCE_INCREMENTAL_DURING_TESTING = false;
}