aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXenoAmess <xenoamess@gmail.com>2024-09-24 17:03:02 +0800
committerMatthias Sohn <matthias.sohn@sap.com>2024-12-13 09:26:57 +0100
commit9cf0a1f174886f844f61d056d4c3383415d27b9e (patch)
treecac00bd580cb424af753fefe527926cf24281226
parentd7c9c503b24c90f644f21eb2a5f5175eaa58e749 (diff)
downloadjgit-9cf0a1f174886f844f61d056d4c3383415d27b9e.tar.gz
jgit-9cf0a1f174886f844f61d056d4c3383415d27b9e.zip
ArchiveCommandTest: add more detailed message if test failed
Change-Id: I05230cd79d5b744bd1b37a2fb5ba69a8ad6bab62
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ArchiveCommandTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ArchiveCommandTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ArchiveCommandTest.java
index 3a4ea8e733..9c2b16a0ae 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ArchiveCommandTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/api/ArchiveCommandTest.java
@@ -267,7 +267,10 @@ public class ArchiveCommandTest extends RepositoryTestCase {
archive(git, archive, fmt, Map.of("compression-level", 9));
int sizeCompression9 = getNumBytes(archive);
- assertTrue(sizeCompression1 > sizeCompression9);
+ assertTrue(
+ "Expected sizeCompression1 = " + sizeCompression1
+ + " > sizeCompression9 = " + sizeCompression9,
+ sizeCompression1 > sizeCompression9);
}
}