diff options
Diffstat (limited to 'ajdoc/testsrc')
-rw-r--r-- | ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTest.java | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTest.java b/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTest.java new file mode 100644 index 000000000..6404ae25b --- /dev/null +++ b/ajdoc/testsrc/org/aspectj/tools/ajdoc/MainTest.java @@ -0,0 +1,46 @@ +/* ******************************************************************* + * 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 MainTest extends TestCase { + + + public void testRun() { + +// System.err.println(new File("testdata/figures-demo").exists()); + File sourcepath = new File("testdata/simple/foo/ClassA.java"); + File outdir = new File("testdata/simple/doc"); + + String[] args = { "-d", outdir.getAbsolutePath(), sourcepath.getAbsolutePath() }; + +// String[] args = { "-sourcepath", sourcepath.getAbsolutePath(), "figures" }; + org.aspectj.tools.ajdoc.Main.main(args); + + assertTrue(true); + } + + + protected void setUp() throws Exception { + super.setUp(); + } + + protected void tearDown() throws Exception { + super.tearDown(); + } +} |