Fixed some checkstyle and javadoc warnings and added a few new IO unit
tests.
This commit is contained in:
parent
ed1732a625
commit
edbe6bb737
39 changed files with 581 additions and 111 deletions
|
|
@ -25,6 +25,7 @@ package org.x4o.plugin.maven;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
import org.apache.maven.plugin.Mojo;
|
||||
import org.apache.maven.plugin.testing.AbstractMojoTestCase;
|
||||
|
||||
/**
|
||||
|
|
@ -54,6 +55,16 @@ public class X4OWriteLanguageDocMojoTest extends AbstractMojoTestCase {
|
|||
mojo.execute();
|
||||
}
|
||||
|
||||
public void testHelp() throws Exception {
|
||||
File pom = getTestFile("src/test/resources/junit/test-plugin-defaults.pom");
|
||||
assertNotNull(pom);
|
||||
assertTrue(pom.exists());
|
||||
Mojo mojo = lookupMojo("help",pom);
|
||||
assertNotNull(mojo);
|
||||
mojo.execute();
|
||||
|
||||
}
|
||||
|
||||
public void testConfAllWriteDoc() throws Exception {
|
||||
executeGoal(X4OWriteLanguageDocMojo.GOAL,"src/test/resources/junit/test-plugin-conf-all.pom");
|
||||
File outputDir = new File("target/jtest/test-plugin-conf-all/doc-eld-1.0");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue