Class CompressedFileWriterTest

java.lang.Object
org.djutils.io.CompressedFileWriterTest

public class CompressedFileWriterTest extends Object
CompressedFileWriterTest tests the CompressedFileWriter class.

Copyright (c) 2023-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Alexander Verbraeck
  • Constructor Details

    • CompressedFileWriterTest

      public CompressedFileWriterTest()
  • Method Details

    • testCompressedFileWriter

      @Test public void testCompressedFileWriter() throws IOException
      Test the CompressedFileWriter class with a filename with .zip.
      Throws:
      IOException - on errors with the temporary zip file
    • testCompressedFileWriterNoExtension

      @Test public void testCompressedFileWriterNoExtension() throws IOException
      Test the CompressedFileWriter class, where the .zip extension is not given.
      Throws:
      IOException - on errors with the temporary zip file
    • testCompressedFileWriterCreateExtension

      @Test public void testCompressedFileWriterCreateExtension() throws IOException
      Test the CompressedFileWriter class for the create() method.
      Throws:
      IOException - on errors with the temporary zip file
    • testCompressedFileWriterCreateNoExtension

      @Test public void testCompressedFileWriterCreateNoExtension() throws IOException
      Test the CompressedFileWriter class for the create() method.
      Throws:
      IOException - on errors with the temporary zip file
    • testCompressedFileWriterCreateNoZip

      @Test public void testCompressedFileWriterCreateNoZip() throws IOException
      Test the CompressedFileWriter class for the create() method, where the file is not zipped.
      Throws:
      IOException - on errors with the temporary zip file
    • testCompressedFileWriterEmpty

      @Test public void testCompressedFileWriterEmpty() throws IOException
      Test the CompressedFileWriter class for empty files.
      Throws:
      IOException - on uncaught error
    • testCompressedFileWriterErrors

      @Test public void testCompressedFileWriterErrors() throws IOException
      Test the CompressedFileWriter class for the correct exceptions.
      Throws:
      IOException - on uncaught error