Package org.djutils.io
Class CompressedFileWriterTest
java.lang.Object
org.djutils.io.CompressedFileWriterTest
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Test the CompressedFileWriter class with a filename with .zip.void
Test the CompressedFileWriter class for the create() method.void
Test the CompressedFileWriter class for the create() method.void
Test the CompressedFileWriter class for the create() method, where the file is not zipped.void
Test the CompressedFileWriter class for empty files.void
Test the CompressedFileWriter class for the correct exceptions.void
Test the CompressedFileWriter class, where the .zip extension is not given.
-
Constructor Details
-
CompressedFileWriterTest
public CompressedFileWriterTest()
-
-
Method Details
-
testCompressedFileWriter
Test the CompressedFileWriter class with a filename with .zip.- Throws:
IOException
- on errors with the temporary zip file
-
testCompressedFileWriterNoExtension
Test the CompressedFileWriter class, where the .zip extension is not given.- Throws:
IOException
- on errors with the temporary zip file
-
testCompressedFileWriterCreateExtension
Test the CompressedFileWriter class for the create() method.- Throws:
IOException
- on errors with the temporary zip file
-
testCompressedFileWriterCreateNoExtension
Test the CompressedFileWriter class for the create() method.- Throws:
IOException
- on errors with the temporary zip file
-
testCompressedFileWriterCreateNoZip
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 the CompressedFileWriter class for empty files.- Throws:
IOException
- on uncaught error
-
testCompressedFileWriterErrors
Test the CompressedFileWriter class for the correct exceptions.- Throws:
IOException
- on uncaught error
-