You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/05/05 18:10:59 UTC
[commons-compress] 03/06: Sort members.
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 298fa23d9516ff604d2346a07189fa22d832d309
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu May 5 14:07:29 2022 -0400
Sort members.
---
.../apache/commons/compress/archivers/cpio/CpioUtilTest.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/test/java/org/apache/commons/compress/archivers/cpio/CpioUtilTest.java b/src/test/java/org/apache/commons/compress/archivers/cpio/CpioUtilTest.java
index ad25e8b6..18ad6d4d 100644
--- a/src/test/java/org/apache/commons/compress/archivers/cpio/CpioUtilTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/cpio/CpioUtilTest.java
@@ -47,8 +47,9 @@ public class CpioUtilTest {
}
@Test
- public void testLong2byteArrayWithZeroThrowsUnsupportedOperationException() {
- assertThrows(UnsupportedOperationException.class, () -> CpioUtil.long2byteArray(0L, 0, false));
+ public void testByteArray2longThrowsUnsupportedOperationException() {
+ assertThrows(UnsupportedOperationException.class, () -> CpioUtil.byteArray2long(new byte[1], true));
+
}
@Test
@@ -57,9 +58,8 @@ public class CpioUtilTest {
}
@Test
- public void testByteArray2longThrowsUnsupportedOperationException() {
- assertThrows(UnsupportedOperationException.class, () -> CpioUtil.byteArray2long(new byte[1], true));
-
+ public void testLong2byteArrayWithZeroThrowsUnsupportedOperationException() {
+ assertThrows(UnsupportedOperationException.class, () -> CpioUtil.long2byteArray(0L, 0, false));
}
}