-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow to skip generating empty report
- Loading branch information
1 parent
19aa03b
commit 15a9ba8
Showing
11 changed files
with
202 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/test/java/org/codehaus/mojo/taglist/TaglistMojoSkipTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package org.codehaus.mojo.taglist; | ||
|
||
import java.io.File; | ||
|
||
public class TaglistMojoSkipTest extends AbstractTaglistMojoTestCase { | ||
|
||
public void testNoSourcesDirectory() throws Exception { | ||
File pluginXmlFile = new File(getBasedir(), "src/test/resources/unit/no-sources-test/default-pom.xml"); | ||
|
||
TagListReport mojo = super.getTagListReport(pluginXmlFile); | ||
|
||
// Run the TagList mojo | ||
mojo.execute(); | ||
|
||
// output should not be generated | ||
File outputDirectory = mojo.getReportOutputDirectory(); | ||
assertNotNull(outputDirectory); | ||
assertFalse(outputDirectory.exists()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.