/* *******************************************************************
 * Copyright (c) 1999-2001 Xerox Corporation, 
 *               2002 Palo Alto Research Center, Incorporated (PARC).
 * 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: 
 *     Xerox/PARC     initial implementation 
 * ******************************************************************/

package org.aspectj.tools.ant.taskdefs;

import org.apache.tools.ant.Project;

import java.io.File;

import junit.framework.TestCase;

/**
 * 
 */
public class AjdocTest extends TestCase {

	public AjdocTest(String name) {
		super(name);
	}

    public void testSource14() {
        new File("bin/AjdocTest").mkdirs();

        Ajdoc task = new Ajdoc();
        Project p = new Project();
        task.setProject(p);
        // XXX restore when ajdoc is restored
//        task.setSource("1.4");
//        task.setSourcepath(new Path(p, "testdata"));
//        task.setIncludes("Ajdoc14Source.java");
//        task.setDestdir("bin/AjdocTest");
//        task.setClasspath(new Path(p, "../lib/test/aspectjrt.jar"));
        task.execute();
    }
//    public void testHelp() {
//        Ajdoc task = new Ajdoc();
//        Project p = new Project();
//        task.setProject(p);
//        task.setSourcepath(new Path(p, "testdata"));
//        task.setIncludes("none");
//        task.setDestdir("bin/AjdocTest");
//        task.execute();
//    }
}
