diff options
author | mkersten <mkersten> | 2005-01-13 15:53:01 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2005-01-13 15:53:01 +0000 |
commit | b460597575b05920885bd2f5f226b0140b687d6e (patch) | |
tree | 32baeedee64bb236c133471c88b4842fcda4456f /ajdoc/testsrc/org/aspectj | |
parent | f70b383d6292995c1e0521e7312e827022fe8fc9 (diff) | |
download | aspectj-b460597575b05920885bd2f5f226b0140b687d6e.tar.gz aspectj-b460597575b05920885bd2f5f226b0140b687d6e.zip |
Fixed 3 bugs reported in bug#82340, including correct use of visibility modifiers.
Diffstat (limited to 'ajdoc/testsrc/org/aspectj')
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java | 26 | ||||
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/PointcutVisibilityTest.java | 29 |
2 files changed, 42 insertions, 13 deletions
diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java index 34f22a03d..c03a4ecd7 100644 --- a/ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java +++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/CoverageTestCase.java @@ -22,20 +22,20 @@ import junit.framework.TestCase; */ public class CoverageTestCase extends TestCase { - File file0 = new File("testdata/coverage/InDefaultPackage.java"); - File file1 = new File("testdata/coverage/foo/ClassA.java"); - File aspect1 = new File("testdata/coverage/foo/UseThisAspectForLinkCheck.aj"); - File file2 = new File("testdata/coverage/foo/InterfaceI.java"); - File file3 = new File("testdata/coverage/foo/PlainJava.java"); - File file4 = new File("testdata/coverage/foo/ModelCoverage.java"); - File file5 = new File("testdata/coverage/fluffy/Fluffy.java"); - File file6 = new File("testdata/coverage/fluffy/bunny/Bunny.java"); - File file7 = new File("testdata/coverage/fluffy/bunny/rocks/Rocks.java"); - File file8 = new File("testdata/coverage/fluffy/bunny/rocks/UseThisAspectForLinkCheckToo.java"); - File file9 = new File("testdata/coverage/foo/PkgVisibleClass.java"); - File file10 = new File("testdata/coverage/foo/NoMembers.java"); + protected File file0 = new File("testdata/coverage/InDefaultPackage.java"); + protected File file1 = new File("testdata/coverage/foo/ClassA.java"); + protected File aspect1 = new File("testdata/coverage/foo/UseThisAspectForLinkCheck.aj"); + protected File file2 = new File("testdata/coverage/foo/InterfaceI.java"); + protected File file3 = new File("testdata/coverage/foo/PlainJava.java"); + protected File file4 = new File("testdata/coverage/foo/ModelCoverage.java"); + protected File file5 = new File("testdata/coverage/fluffy/Fluffy.java"); + protected File file6 = new File("testdata/coverage/fluffy/bunny/Bunny.java"); + protected File file7 = new File("testdata/coverage/fluffy/bunny/rocks/Rocks.java"); + protected File file8 = new File("testdata/coverage/fluffy/bunny/rocks/UseThisAspectForLinkCheckToo.java"); + protected File file9 = new File("testdata/coverage/foo/PkgVisibleClass.java"); + protected File file10 = new File("testdata/coverage/foo/NoMembers.java"); - File outdir = new File("testdata/coverage/doc"); + protected File outdir = new File("testdata/coverage/doc"); public void testOptions() { outdir.delete(); diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/PointcutVisibilityTest.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/PointcutVisibilityTest.java new file mode 100644 index 000000000..760e4c22c --- /dev/null +++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/PointcutVisibilityTest.java @@ -0,0 +1,29 @@ +/* + * Created on Jan 12, 2005 + */ +package org.aspectj.tools.ajdoc; + +import java.io.File; + +import junit.framework.TestCase; + +/** + * @author Mik Kersten + */ +public class PointcutVisibilityTest extends TestCase { + + protected File file1 = new File("testdata/bug82340/Pointcuts.java"); + protected File outdir = new File("testdata/bug82340/doc"); + + public void testCoveragePublicMode() { + outdir.delete(); + String[] args = { + "-XajdocDebug", + "-protected", + "-d", + outdir.getAbsolutePath(), + file1.getAbsolutePath() + }; + org.aspectj.tools.ajdoc.Main.main(args); + } +} |