aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.test
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2014-11-10 18:18:34 -0800
committerStefan Beller <sbeller@google.com>2014-11-10 18:18:34 -0800
commit423ad8b0ad0d6aba2be38064a7a66f893747dd63 (patch)
treedbe9618654244603c2e36d8cca893320321b4e8f /org.eclipse.jgit.test
parent0cf902e47370bfb5360f6d5b46bc14e203f37d71 (diff)
downloadjgit-423ad8b0ad0d6aba2be38064a7a66f893747dd63.tar.gz
jgit-423ad8b0ad0d6aba2be38064a7a66f893747dd63.zip
Fix variable name and error message for sideband testing
Actually the test only allows a range from [1,255], so let's name the variable so. Change-Id: Iecdb8149b83389c67e3cd2f64f4a654c175475be Signed-off-by: Stefan Beller <sbeller@google.com>
Diffstat (limited to 'org.eclipse.jgit.test')
-rw-r--r--org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SideBandOutputStreamTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SideBandOutputStreamTest.java b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SideBandOutputStreamTest.java
index 717a58bcbb..e9ae1909ea 100644
--- a/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SideBandOutputStreamTest.java
+++ b/org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/SideBandOutputStreamTest.java
@@ -201,21 +201,21 @@ public class SideBandOutputStreamTest {
new SideBandOutputStream(-1, MAX_BUF, rawOut);
fail("Accepted -1 channel number");
} catch (IllegalArgumentException e) {
- assertEquals("channel -1 must be in range [0, 255]", e.getMessage());
+ assertEquals("channel -1 must be in range [1, 255]", e.getMessage());
}
try {
new SideBandOutputStream(0, MAX_BUF, rawOut);
fail("Accepted 0 channel number");
} catch (IllegalArgumentException e) {
- assertEquals("channel 0 must be in range [0, 255]", e.getMessage());
+ assertEquals("channel 0 must be in range [1, 255]", e.getMessage());
}
try {
new SideBandOutputStream(256, MAX_BUF, rawOut);
fail("Accepted 256 channel number");
} catch (IllegalArgumentException e) {
- assertEquals("channel 256 must be in range [0, 255]", e
+ assertEquals("channel 256 must be in range [1, 255]", e
.getMessage());
}
}