You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pe...@apache.org on 2020/11/30 01:45:38 UTC
[commons-compress] 03/03: COMPRESS-560: Add message to assume check
This is an automated email from the ASF dual-hosted git repository.
peterlee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 291b49d2f36b2e21f209a6eb2913db2ddaf6fef8
Author: theobisproject <th...@gmail.com>
AuthorDate: Fri Nov 27 16:30:35 2020 +0100
COMPRESS-560: Add message to assume check
---
.../apache/commons/compress/archivers/tar/SparseFilesTest.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java b/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java
index 136aef3..434fa64 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/SparseFilesTest.java
@@ -75,7 +75,7 @@ public class SparseFilesTest extends AbstractTestCase {
@Test
public void testExtractSparseTarsOnWindows() throws IOException {
- assumeTrue(isOnWindows);
+ assumeTrue("This test should be ignored if not running on Windows", isOnWindows);
final File oldGNUSparseTar = getFile("oldgnu_sparse.tar");
final File paxGNUSparseTar = getFile("pax_gnu_sparse.tar");
@@ -115,7 +115,7 @@ public class SparseFilesTest extends AbstractTestCase {
@Test
public void testExtractOldGNU() throws IOException, InterruptedException {
- assumeFalse(isOnWindows);
+ assumeFalse("This test should be ignored on Windows", isOnWindows);
try {
final File file = getFile("oldgnu_sparse.tar");
@@ -134,7 +134,7 @@ public class SparseFilesTest extends AbstractTestCase {
@Test
public void testExtractExtendedOldGNU() throws IOException, InterruptedException {
- assumeFalse(isOnWindows);
+ assumeFalse("This test should be ignored on Windows", isOnWindows);
final File file = getFile("oldgnu_extended_sparse.tar");
try (InputStream sparseFileInputStream = extractTarAndGetInputStream(file, "sparse6");
@@ -173,7 +173,7 @@ public class SparseFilesTest extends AbstractTestCase {
@Test
public void testExtractPaxGNU() throws IOException, InterruptedException {
- assumeFalse(isOnWindows);
+ assumeFalse("This test should be ignored on Windows", isOnWindows);
final File file = getFile("pax_gnu_sparse.tar");
try (TarArchiveInputStream tin = new TarArchiveInputStream(new FileInputStream(file))) {