summaryrefslogtreecommitdiffstats
path: root/ajdoc/testsrc
diff options
context:
space:
mode:
authormkersten <mkersten>2004-03-23 09:45:08 +0000
committermkersten <mkersten>2004-03-23 09:45:08 +0000
commitaa335f2a1986353cb757dbbcb6255bab448dc99f (patch)
tree74b0d8f08dace6d07406d737b9a27bfcb728d802 /ajdoc/testsrc
parentc3f286ab51c94779820dcb529609142a846570be (diff)
downloadaspectj-aa335f2a1986353cb757dbbcb6255bab448dc99f.tar.gz
aspectj-aa335f2a1986353cb757dbbcb6255bab448dc99f.zip
Working ajdoc to that generates advice links, with tests
for generating spacewar documentation.
Diffstat (limited to 'ajdoc/testsrc')
-rw-r--r--ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTestCase.java8
-rw-r--r--ajdoc/testsrc/org/aspectj/tools/ajdoc/SpacewarTestCase.java48
2 files changed, 55 insertions, 1 deletions
diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTestCase.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTestCase.java
index 0863a04b0..ff31aa435 100644
--- a/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTestCase.java
+++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTestCase.java
@@ -24,10 +24,16 @@ public class MainTestCase extends TestCase {
// System.err.println(new File("testdata/figures-demo").exists());
File file1 = new File("testdata/simple/foo/ClassA.java");
+ File aspect1 = new File("testdata/simple/foo/AspectA.java");
File file2 = new File("testdata/simple/foo/InterfaceI.java");
File outdir = new File("testdata/simple/doc");
- String[] args = { "-d", outdir.getAbsolutePath(), file1.getAbsolutePath(), file2.getAbsolutePath() };
+ String[] args = { "-d",
+ outdir.getAbsolutePath(),
+ aspect1.getAbsolutePath(),
+ file1.getAbsolutePath(),
+ file2.getAbsolutePath() };
+
org.aspectj.tools.ajdoc.Main.main(args);
assertTrue(true);
diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/SpacewarTestCase.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/SpacewarTestCase.java
new file mode 100644
index 000000000..03c7c643c
--- /dev/null
+++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/SpacewarTestCase.java
@@ -0,0 +1,48 @@
+/* *******************************************************************
+ * Copyright (c) 2003 Contributors.
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Common Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * Mik Kersten initial implementation
+ * ******************************************************************/
+ package org.aspectj.tools.ajdoc;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+/**
+ * @author Mik Kersten
+ */
+public class SpacewarTestCase extends TestCase {
+
+ public void testSimpleExample() {
+
+// System.err.println(new File("testdata/figures-demo").exists());
+ File outdir = new File("testdata/spacewar/doc");
+ File sourcepath = new File("testdata/spacewar");
+
+ String[] args = { "-d",
+ outdir.getAbsolutePath(),
+ "-sourcepath",
+ sourcepath.getAbsolutePath(),
+ "spacewar",
+ "coordination" };
+
+ org.aspectj.tools.ajdoc.Main.main(args);
+
+ assertTrue(true);
+ }
+
+ protected void setUp() throws Exception {
+ super.setUp();
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+}