From: mwebster Date: Mon, 22 Jan 2007 16:44:10 +0000 (+0000) Subject: Test LTW dump for JSPs X-Git-Tag: Root_extensions~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe356d2b742c642a931d40e6e5c5c43118c35f89;p=aspectj.git Test LTW dump for JSPs --- diff --git a/tests/java5/ataspectj/ataspectj/aop-dumpjsp.xml b/tests/java5/ataspectj/ataspectj/aop-dumpjsp.xml new file mode 100644 index 000000000..43a6cf5a7 --- /dev/null +++ b/tests/java5/ataspectj/ataspectj/aop-dumpjsp.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/tests/java5/ataspectj/com/ibm/_jsp/_abc123_xyz890.java b/tests/java5/ataspectj/com/ibm/_jsp/_abc123_xyz890.java new file mode 100644 index 000000000..4d0bac8d6 --- /dev/null +++ b/tests/java5/ataspectj/com/ibm/_jsp/_abc123_xyz890.java @@ -0,0 +1,8 @@ +package com.ibm._jsp; + +public class _abc123_xyz890 { + + public static void main (String[] args) { + System.out.println("? _abc123_xyz890.main()"); + } +} \ No newline at end of file diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java index 6e7e7d546..22c817823 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/AtAjLTWTests.java @@ -147,6 +147,25 @@ public class AtAjLTWTests extends XMLBasedAjcTestCase { f.delete(); } + public void testLTWDumpJSP () { + runTest("LTW DumpTest JSP"); + + // The working directory is different because this test must be forked + File f = new File("_ajdump/_before/com/ibm/_jsp"); + CountingFilenameFilter cff = new CountingFilenameFilter(".class"); + f.listFiles(cff); + assertEquals("Expected dump file in " + f.getAbsolutePath(),1,cff.getCount()); + f = new File("_ajdump/com/ibm/_jsp"); + cff = new CountingFilenameFilter(".class"); + f.listFiles(cff); + assertEquals(1,cff.getCount()); + + // tidy up... + f = new File("_ajdump"); + FileUtil.deleteContents(f); + f.delete(); + } + public void testAjcAspect1LTWAspect2_Xreweavable() { runTest("Ajc Aspect1 LTW Aspect2 -Xreweavable"); } diff --git a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml index 2fb728485..a72fa4ebf 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ataspectj/ltw.xml @@ -136,6 +136,16 @@ + + + + + +