File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/testKit/kotlin/com/github/jengelman/gradle/plugins/shadow/testkit Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import java.nio.file.Path
1010import java.util.jar.JarFile
1111import java.util.jar.JarInputStream
1212import java.util.zip.ZipFile
13+ import java.util.zip.ZipInputStream
1314import kotlin.io.path.inputStream
1415
1516/* *
@@ -91,7 +92,7 @@ fun Assert<JarPath>.containsOnly(vararg entries: String) = toEntries().containsO
9192 * Used alone, without [containsAtLeast] or [containsNone].
9293 */
9394fun Assert<JarPath>.containsExactlyInAnyOrder (vararg entries : String ) = transform { actual ->
94- JarInputStream (actual.path.inputStream()).use { jarInput ->
95+ ZipInputStream (actual.path.inputStream()).use { jarInput ->
9596 val allEntries = mutableListOf<String >()
9697 while (true ) {
9798 val entry = jarInput.nextEntry ? : break
You can’t perform that action at this time.
0 commit comments