|
|
6e4d5d |
From 4dd332d8f82d3a5f0ac6654d2c1733e44da6ddbd Mon Sep 17 00:00:00 2001
|
|
|
6e4d5d |
From: Mat Booth <mat.booth@redhat.com>
|
|
|
6e4d5d |
Date: Thu, 7 Feb 2019 14:57:25 +0000
|
|
|
6e4d5d |
Subject: [PATCH 3/3] Avoid use of internal Mockito API
|
|
|
6e4d5d |
|
|
|
6e4d5d |
---
|
|
|
6e4d5d |
.../compress/utils/FixedLengthBlockOutputStreamTest.java | 2 --
|
|
|
6e4d5d |
1 file changed, 2 deletions(-)
|
|
|
6e4d5d |
|
|
|
6e4d5d |
diff --git a/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java b/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java
|
|
|
6e4d5d |
index cfda61b..e94ccee 100644
|
|
|
6e4d5d |
--- a/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java
|
|
|
6e4d5d |
+++ b/src/test/java/org/apache/commons/compress/utils/FixedLengthBlockOutputStreamTest.java
|
|
|
6e4d5d |
@@ -39,7 +39,6 @@ import java.nio.file.Path;
|
|
|
6e4d5d |
import java.util.concurrent.atomic.AtomicBoolean;
|
|
|
6e4d5d |
import org.hamcrest.core.IsInstanceOf;
|
|
|
6e4d5d |
import org.junit.Test;
|
|
|
6e4d5d |
-import org.mockito.internal.matchers.GreaterOrEqual;
|
|
|
6e4d5d |
|
|
|
6e4d5d |
public class FixedLengthBlockOutputStreamTest {
|
|
|
6e4d5d |
|
|
|
6e4d5d |
@@ -294,7 +293,6 @@ public class FixedLengthBlockOutputStreamTest {
|
|
|
6e4d5d |
|
|
|
6e4d5d |
private static void assertContainsAtOffset(String msg, byte[] expected, int offset,
|
|
|
6e4d5d |
byte[] actual) {
|
|
|
6e4d5d |
- assertThat(actual.length, new GreaterOrEqual<>(offset + expected.length));
|
|
|
6e4d5d |
for (int i = 0; i < expected.length; i++) {
|
|
|
6e4d5d |
assertEquals(String.format("%s ([%d])", msg, i), expected[i], actual[i + offset]);
|
|
|
6e4d5d |
}
|
|
|
6e4d5d |
--
|
|
|
6e4d5d |
2.20.1
|
|
|
6e4d5d |
|