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 2025/08/02 01:44:19 UTC
(commons-compress) 01/03: Reduce vertical space
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 e2664356bc5f42beb15db214be9932b05acd5822
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 1 21:31:02 2025 -0400
Reduce vertical space
---
.../compress/archivers/sevenz/AES256SHA256DecoderTest.java | 3 +--
.../commons/compress/archivers/sevenz/FolderTest.java | 14 +-------------
2 files changed, 2 insertions(+), 15 deletions(-)
diff --git a/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java b/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
index 6182eafed..a95e1133b 100644
--- a/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/sevenz/AES256SHA256DecoderTest.java
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+
package org.apache.commons.compress.archivers.sevenz;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -37,7 +38,6 @@ class AES256SHA256DecoderTest {
@Test
void testDecodeWithNonEmptyString() throws IOException {
-
final AES256SHA256Decoder aES256SHA256Decoder = new AES256SHA256Decoder();
try (BufferedInputStream bufferedInputStream = new BufferedInputStream(null, 3138)) {
final byte[] byteArray = new byte[8];
@@ -51,5 +51,4 @@ void testDecodeWithNonEmptyString() throws IOException {
}
}
}
-
}
diff --git a/src/test/java/org/apache/commons/compress/archivers/sevenz/FolderTest.java b/src/test/java/org/apache/commons/compress/archivers/sevenz/FolderTest.java
index fb909325c..1d810023b 100644
--- a/src/test/java/org/apache/commons/compress/archivers/sevenz/FolderTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/sevenz/FolderTest.java
@@ -16,6 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
+
package org.apache.commons.compress.archivers.sevenz;
import static org.junit.jupiter.api.Assertions.assertEquals;
@@ -31,32 +32,25 @@ class FolderTest {
@Test
void testFindBindPairForInStream() {
-
final Folder folder = new Folder();
final BindPair[] bindPairArray = new BindPair[1];
final BindPair bindPair = new BindPair(0, 0);
bindPairArray[0] = bindPair;
folder.bindPairs = bindPairArray;
-
assertEquals(0, folder.findBindPairForInStream(0));
-
}
@Test
void testGetUnpackSizeForCoderOne() {
-
final Folder folder = new Folder();
final Coder[] coderArray = new Coder[5];
final Coder coder = new Coder(null, 0, 0, null);
folder.coders = coderArray;
-
assertEquals(0L, folder.getUnpackSizeForCoder(coder));
-
}
@Test
void testGetUnpackSizeOne() {
-
final Folder folder = new Folder();
folder.totalOutputStreams = 266L;
final BindPair[] bindPairArray = new BindPair[1];
@@ -64,18 +58,12 @@ void testGetUnpackSizeOne() {
bindPairArray[0] = bindPair;
folder.bindPairs = bindPairArray;
folder.totalOutputStreams = 1L;
-
assertEquals(0L, folder.getUnpackSize());
-
}
@Test
void testGetUnpackSizeTwo() {
-
final Folder folder = new Folder();
-
assertEquals(0L, folder.getUnpackSize());
-
}
-
}