Class XmlCompressorMojoTest
java.lang.Object
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest
The Class XmlCompressorMojoTest.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidsetUp()Sets the up.(package private) static voidSets the up class.(package private) static voidTear down class.(package private) voidTest execute with default settings produces output files.(package private) voidtestExecuteCompressesXml(Path tempDir) Test execute compresses XML and removes comments.(package private) voidtestExecuteDisabled(Path tempDir) Test execute when enabled is false produces no output.(package private) voidtestExecuteSkip(Path tempDir) Test execute when skip is true produces no output.(package private) voidtestExecuteWithCommentsRetained(Path tempDir) Test execute with remove comments disabled retains comments.(package private) voidtestExecuteWithDeprecatedFileExt(Path tempDir) Test execute with deprecated fileExt parameter.(package private) voidTest XmlCompressorMojo getters and setters for all configurable parameters.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOGThe Constant LOG.
-
-
Constructor Details
-
XmlCompressorMojoTest
XmlCompressorMojoTest()
-
-
Method Details
-
setUpClass
@BeforeAll static void setUpClass()Sets the up class. -
tearDownClass
@AfterAll static void tearDownClass()Tear down class. -
setUp
@BeforeEach void setUp()Sets the up. -
testExecute
@Test void testExecute() throws org.apache.maven.plugin.MojoExecutionExceptionTest execute with default settings produces output files.- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-
testExecuteSkip
@Test void testExecuteSkip(@TempDir Path tempDir) throws org.apache.maven.plugin.MojoExecutionException Test execute when skip is true produces no output.- Parameters:
tempDir- the temp dir provided by JUnit- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-
testExecuteDisabled
@Test void testExecuteDisabled(@TempDir Path tempDir) throws org.apache.maven.plugin.MojoExecutionException Test execute when enabled is false produces no output.- Parameters:
tempDir- the temp dir provided by JUnit- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-
testExecuteWithDeprecatedFileExt
@Test void testExecuteWithDeprecatedFileExt(@TempDir Path tempDir) throws org.apache.maven.plugin.MojoExecutionException Test execute with deprecated fileExt parameter.- Parameters:
tempDir- the temp dir provided by JUnit- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-
testExecuteCompressesXml
@Test void testExecuteCompressesXml(@TempDir Path tempDir) throws org.apache.maven.plugin.MojoExecutionException Test execute compresses XML and removes comments.- Parameters:
tempDir- the temp dir provided by JUnit- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-
testXmlMojoGettersSetters
@Test void testXmlMojoGettersSetters()Test XmlCompressorMojo getters and setters for all configurable parameters. -
testExecuteWithCommentsRetained
@Test void testExecuteWithCommentsRetained(@TempDir Path tempDir) throws org.apache.maven.plugin.MojoExecutionException Test execute with remove comments disabled retains comments.- Parameters:
tempDir- the temp dir provided by JUnit- Throws:
org.apache.maven.plugin.MojoExecutionException- the mojo execution exception
-