--- /dev/null
+/*******************************************************************************
+ * Copyright (c) 2006 IBM
+ * All rights reserved. This program and the accompanying materials
+ * 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:
+ * Andy Clement - initial API and implementation
+ *******************************************************************************/
+package org.aspectj.systemtest.ajc160;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.aspectj.testing.XMLBasedAjcTestCase;
+
+public class NewFeatures extends org.aspectj.testing.XMLBasedAjcTestCase {
+
+ // Supporting -Xset:weaveJavaPackages=true and -Xset:weaveJavaxPackages=true
+ public void testWeaveJavaxClassesNo() { runTest("weave javax classes - no");}
+ public void testWeaveJavaxClassesYes() { runTest("weave javax classes - yes");}
+
+ /////////////////////////////////////////
+ public static Test suite() {
+ return XMLBasedAjcTestCase.loadSuite(NewFeatures.class);
+ }
+
+ protected File getSpecFile() {
+ return new File("../tests/src/org/aspectj/systemtest/ajc160/newfeatures-tests.xml");
+ }
+
+
+}
--- /dev/null
+<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
+
+<!-- AspectJ v1.6.0 Tests -->
+<suite>
+
+ <ajc-test dir="features160/weavingJavaxPackage" title="weave javax classes - no">
+ <compile files="A.java" />
+ <compile files="X.aj" outjar="code.jar"/>
+ <run class="javax.foo.A" classpath="code.jar" ltw="aop1.xml">
+ <stdout>
+ <line text="Method running"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="features160/weavingJavaxPackage" title="weave javax classes - yes">
+ <compile files="A.java" />
+ <compile files="X.aj" outjar="code.jar"/>
+ <run class="javax.foo.A" classpath="code.jar" ltw="aop2.xml">
+ <stdout>
+ <line text="advised"/>
+ <line text="Method running"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+</suite>