aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/testsrc
diff options
context:
space:
mode:
authorhsestupin <stupin.sergey@gmail.com>2014-07-02 15:19:06 +0400
committerhsestupin <stupin.sergey@gmail.com>2014-08-01 20:24:46 +0300
commit3c1c536e93ee51a9a720b2b0080840b89c35cdee (patch)
tree81ae4cdd195f5fdb4df5139e29e3730b309a4c65 /org.aspectj.ajdt.core/testsrc
parent93c58e39cf0512d0920c37a40026a6aa5f1ff26b (diff)
downloadaspectj-3c1c536e93ee51a9a720b2b0080840b89c35cdee.tar.gz
aspectj-3c1c536e93ee51a9a720b2b0080840b89c35cdee.zip
annotation processing in aspectj
Signed-off-by: hsestupin <stupin.sergey@gmail.com>
Diffstat (limited to 'org.aspectj.ajdt.core/testsrc')
-rw-r--r--org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjStateTest.java33
1 files changed, 28 insertions, 5 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjStateTest.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjStateTest.java
index e574100aa..c230b9fae 100644
--- a/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjStateTest.java
+++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/ajdt/internal/core/builder/AjStateTest.java
@@ -4,18 +4,22 @@
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.aspectj.ajdt.internal.core.builder;
+import junit.framework.TestCase;
+import org.aspectj.ajdt.ajc.BuildArgParser;
+import org.aspectj.bridge.AbortException;
+import org.aspectj.bridge.IMessage;
+import org.aspectj.bridge.IMessageHandler;
+
import java.io.File;
import java.util.ArrayList;
import java.util.List;
-import junit.framework.TestCase;
-
public class AjStateTest extends TestCase {
private AjState aRightState;
@@ -94,8 +98,27 @@ public class AjStateTest extends TestCase {
protected void setUp() throws Exception {
super.setUp();
aRightState = new AjState(null);
- oldConfig = new AjBuildConfig();
- newConfig = new AjBuildConfig();
+ final BuildArgParser parser = new BuildArgParser(new IMessageHandler() {
+ @Override
+ public boolean handleMessage(IMessage message) throws AbortException {
+ return true;
+ }
+
+ @Override
+ public boolean isIgnoring(IMessage.Kind kind) {
+ return false;
+ }
+
+ @Override
+ public void dontIgnore(IMessage.Kind kind) {
+ }
+
+ @Override
+ public void ignore(IMessage.Kind kind) {
+ }
+ });
+ oldConfig = new AjBuildConfig(parser);
+ newConfig = new AjBuildConfig(parser);
List<String> cp = new ArrayList<String>();
cp.add("adir");
cp.add("ajar.jar");