Class XmlCompressorMojoTest

java.lang.Object
com.tunyk.mvn.plugins.htmlcompressor.XmlCompressorMojoTest

class XmlCompressorMojoTest extends Object
The Class XmlCompressorMojoTest.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
      The 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.MojoExecutionException
      Test 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