package org.dita.dost;

import org.junit.Ignore;
import org.junit.Test;

import java.io.File;
import java.nio.file.Paths;

import static org.dita.dost.AbstractIntegrationTest.Transtype.*;

public class EndToEndTest extends AbstractIntegrationTest {

    @Test
    public void xhtml() throws Throwable {
        builder().name("e2e")
                .transtype(XHTML)
                .input(Paths.get("root.ditamap"))
                .run();
    }

    @Test
    public void html5() throws Throwable {
        builder().name("e2e")
                .transtype(HTML5)
                .input(Paths.get("root.ditamap"))
                .run();
    }

    @Test
    public void pdf() throws Throwable {
        builder().name("e2e")
                .transtype(PDF)
                .input(Paths.get("root.ditamap"))
                .put("args.fo.userconfig", new File(resourceDir, "e2e" + File.separator + "fop.xconf").getAbsolutePath())
                .warnCount(10)
                .run();
    }

    @Test
    public void eclipsehelp() throws Throwable {
        builder().name("e2e")
                .transtype(ECLIPSEHELP)
                .input(Paths.get("root.ditamap"))
                .run();
    }

    @Ignore
    @Test
    public void htmlhelp() throws Throwable {
        builder().name("e2e")
                .transtype(HTMLHELP)
                .input(Paths.get("root.ditamap"))
                .run();
    }

}

@@ -928,39 +928,8 @@
 ())%0A
-                .warnCount(10)%0A
     

Fix expected PDF E2E warning count