瀏覽代碼

various polish to previously mavenized projects to support newer ones

tags/V1_9_3RC1
Andy Clement 5 年之前
父節點
當前提交
1f66dac4c2

+ 17
- 5
testing/src/test/java/org/aspectj/testing/AntSpec.java 查看文件

*/ */
public class AntSpec implements ITestStep { public class AntSpec implements ITestStep {


public static final String outputFolders(String... modules) {
StringBuilder s = new StringBuilder();
for (String module: modules) {
s.append(File.pathSeparator + ".." +File.separator + module + File.separator + "target" + File.separator + "classes");
}
return s.toString();
}
// ALSO SEE AJC // ALSO SEE AJC
private final static String DEFAULT_LTW_CLASSPATH_ENTRIES = ".." + File.separator + "asm/bin" + File.pathSeparator + ".."
+ File.separator + "bridge/bin" + File.pathSeparator + ".." + File.separator + "loadtime/bin" + File.pathSeparator
+ ".." + File.separator + "loadtime5/bin" + File.pathSeparator + ".." + File.separator + "weaver/bin"
+ File.pathSeparator + ".." + File.separator + "org.aspectj.matcher/bin" + File.pathSeparator + ".." + File.separator
+ "lib/bcel/bcel.jar" + File.pathSeparator + ".." + File.separator + "lib/bcel/bcel-verifier.jar";;
private final static String DEFAULT_LTW_CLASSPATH_ENTRIES =
outputFolders("asm", "bridge", "loadtime", "weaver", "org.aspectj.matcher", "bcel-builder");
// private final static String DEFAULT_LTW_CLASSPATH_ENTRIES = ".." + File.separator + "asm/bin" + File.pathSeparator + ".."
// + File.separator + "bridge/bin" + File.pathSeparator + ".." + File.separator + "loadtime/bin" + File.pathSeparator
// + ".." + File.separator + "loadtime5/bin" + File.pathSeparator + ".." + File.separator + "weaver/bin"
// + File.pathSeparator + ".." + File.separator + "org.aspectj.matcher/bin" + File.pathSeparator + ".." + File.separator
// + "lib/bcel/bcel.jar" + File.pathSeparator + ".." + File.separator + "lib/bcel/bcel-verifier.jar";;


private boolean m_verbose = false; private boolean m_verbose = false;
private AjcTest m_ajcTest; private AjcTest m_ajcTest;

+ 1
- 11
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCase.java 查看文件

* *
* <pre> * <pre>
* public static Test suite() { * public static Test suite() {
* return XMLBasedAjcTestCase.loadSuite(MyTestCaseClass.class);
* return XMLBasedAjcTestCase.loadSuite(MyTestCaseClass.class);
* } * }
* </pre> * </pre>
* *
TestSuite suite = new TestSuite(testCaseClass.getName()); TestSuite suite = new TestSuite(testCaseClass.getName());
suite.addTestSuite(testCaseClass); suite.addTestSuite(testCaseClass);
TestSetup wrapper = new TestSetup(suite) { TestSetup wrapper = new TestSetup(suite) {
/*
* (non-Javadoc)
*
* @see junit.extensions.TestSetup#setUp()
*/
protected void setUp() throws Exception { protected void setUp() throws Exception {
super.setUp(); super.setUp();
suiteLoaded = false; suiteLoaded = false;
} }


/*
* (non-Javadoc)
*
* @see junit.extensions.TestSetup#tearDown()
*/
protected void tearDown() throws Exception { protected void tearDown() throws Exception {
super.tearDown(); super.tearDown();
suiteLoaded = false; suiteLoaded = false;

Loading…
取消
儲存