diff options
Diffstat (limited to 'ajdoc/testsrc/org')
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTestCase.java | 8 | ||||
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/SpacewarTestCase.java | 48 |
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(); + } +} |