Skip to content
Permalink
Browse files
Sort members.
  • Loading branch information
garydgregory committed May 5, 2022
1 parent 38877c9 commit 298fa23d9516ff604d2346a07189fa22d832d309
Showing 1 changed file with 5 additions and 5 deletions.
@@ -47,8 +47,9 @@ public void oldBinMagicFromByteArraySwapped() {
}

@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 void testLong2byteArrayWithPositiveThrowsUnsupportedOperationException()
}

@Test
public void testByteArray2longThrowsUnsupportedOperationException() {
assertThrows(UnsupportedOperationException.class, () -> CpioUtil.byteArray2long(new byte[1], true));

public void testLong2byteArrayWithZeroThrowsUnsupportedOperationException() {
assertThrows(UnsupportedOperationException.class, () -> CpioUtil.long2byteArray(0L, 0, false));
}

}

0 comments on commit 298fa23

Please sign in to comment.