Package net.riccardocossu.autodoc.html

Source Code of net.riccardocossu.autodoc.html.HtmlOutputPluginTest

package net.riccardocossu.autodoc.html;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import net.riccardocossu.autodoc.base.PackageContainer;
import net.riccardocossu.autodoc.jpa.JPAPlugin;
import net.riccardocossu.autodoc.parsers.PackageParser;
import net.riccardocossu.autodoc.parsers.PluginFactory;

import org.junit.Test;

public class HtmlOutputPluginTest {

  @Test
  public void testOutput() {
    PackageParser parser = new PackageParser();
    PluginFactory factory = new PluginFactory();
    factory.registerPlugin(new JPAPlugin());
    PackageContainer pack = parser.parse(
        "net.riccardocossu.autodoc.test.model", factory);
    List<PackageContainer> packages = new ArrayList<PackageContainer>();
    packages.add(pack);
    HtmlOutputPlugin outPlugin = new HtmlOutputPlugin();
    outPlugin.process(packages, new File("/tmp"));

  }

}
TOP

Related Classes of net.riccardocossu.autodoc.html.HtmlOutputPluginTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.