Skip to content

Commit 7f8a6c9

Browse files
changlinliacogoluegnes
authored andcommitted
Remove redundant queues from tests
They're not actually used at all during the test (cherry picked from commit 26e20c7)
1 parent 91262e2 commit 7f8a6c9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/test/java/com/rabbitmq/client/impl/ValueWriterTest.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,14 @@
77
import java.io.OutputStream;
88
import java.math.BigDecimal;
99
import java.math.BigInteger;
10-
import java.util.ArrayDeque;
11-
import java.util.Queue;
1210

1311
public class ValueWriterTest {
1412
@Test(expected = IllegalArgumentException.class) public void writingOverlyLargeBigDecimalShouldFail()
1513
throws IOException {
16-
Queue<Byte> queue = new ArrayDeque<>();
1714

1815
OutputStream outputStream = new OutputStream() {
1916
@Override
2017
public void write(int b) {
21-
queue.add((byte) b);
2218
}
2319
};
2420

@@ -32,12 +28,10 @@ public void write(int b) {
3228

3329
@Test(expected = IllegalArgumentException.class) public void writingOverlyLargeScaleInBigDecimalShouldFail()
3430
throws IOException {
35-
Queue<Byte> queue = new ArrayDeque<>();
3631

3732
OutputStream outputStream = new OutputStream() {
3833
@Override
3934
public void write(int b) {
40-
queue.add((byte) b);
4135
}
4236
};
4337

0 commit comments

Comments
 (0)