diff --git a/build/tasks/test/org/jetbrains/intellij/build/io/ZipReaderTest.kt b/build/tasks/test/org/jetbrains/intellij/build/io/ZipReaderTest.kt index 509492f85b12..44cc52724210 100644 --- a/build/tasks/test/org/jetbrains/intellij/build/io/ZipReaderTest.kt +++ b/build/tasks/test/org/jetbrains/intellij/build/io/ZipReaderTest.kt @@ -1,18 +1,28 @@ // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.intellij.build.io +import com.intellij.testFramework.utils.io.deleteChildrenRecursively import com.intellij.util.io.createDirectories import com.intellij.util.io.createParentDirectories +import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test import org.junit.jupiter.api.io.TempDir import java.nio.file.Path +import kotlin.io.path.exists class ZipReaderTest { @TempDir lateinit var tempDir: Path + @AfterEach + fun tearDown() { + if (tempDir.exists()) { + tempDir.deleteChildrenRecursively { true } + } + } + @Test fun testReadEmptyZip() { val archive = tempDir.resolve("empty.jar")