Class HtmlCompressorTest

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

class HtmlCompressorTest extends Object
The Class HtmlCompressorTest.
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
      The Constant LOG.
  • Constructor Details

    • HtmlCompressorTest

      HtmlCompressorTest()
  • 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.
    • testCompress

      @Test void testCompress() throws Exception
      Test compress with default settings produces output files.
      Throws:
      Exception - the exception
    • testCompressReducesFileSize

      @Test void testCompressReducesFileSize(@TempDir Path tempDir) throws Exception
      Test compress reduces file size compared to input.
      Parameters:
      tempDir - the temp dir provided by JUnit
      Throws:
      Exception - the exception
    • testCompressWithCustomFileExtensions

      @Test void testCompressWithCustomFileExtensions(@TempDir Path tempDir) throws Exception
      Test compress with custom file extensions processes only specified types.
      Parameters:
      tempDir - the temp dir provided by JUnit
      Throws:
      Exception - the exception
    • testCompressWithJsonFileCreation

      @Test void testCompressWithJsonFileCreation(@TempDir Path tempDir) throws Exception
      Test compress with JSON file creation produces correct integration file.
      Parameters:
      tempDir - the temp dir provided by JUnit
      Throws:
      Exception - the exception
    • testHtmlCompressorGettersSetters

      @Test void testHtmlCompressorGettersSetters()
      Test HtmlCompressor getters and setters.
    • testSecondConstructorInitializesJsonFields

      @Test void testSecondConstructorInitializesJsonFields()
      Test second constructor initializes all JSON-related fields.