Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2012-01-19 19:42:07 +0000
committerJesse McConnell2012-01-19 19:42:07 +0000
commit4fe85c9c1e7347f6f3f4cbbe10f27545507e6f89 (patch)
tree87a500bcd3741fe718d70227e9451f2d35b13d4c
parent8e262aca046c0696b36826e9cd44c6d04ba586b1 (diff)
downloadorg.eclipse.jetty.project-4fe85c9c1e7347f6f3f4cbbe10f27545507e6f89.tar.gz
org.eclipse.jetty.project-4fe85c9c1e7347f6f3f4cbbe10f27545507e6f89.tar.xz
org.eclipse.jetty.project-4fe85c9c1e7347f6f3f4cbbe10f27545507e6f89.zip
additional more informative test error messages
-rw-r--r--jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java b/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java
index f7e672ed98..3b781cd327 100644
--- a/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java
+++ b/jetty-io/src/test/java/org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java
@@ -1,6 +1,8 @@
package org.eclipse.jetty.io.nio;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
+import static org.hamcrest.Matchers.greaterThan;
+
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
@@ -207,8 +209,8 @@ public class SelectChannelEndPointTest
for (char c : "Goodbye Cruel TLS".toCharArray())
{
int b = client.getInputStream().read();
- assertTrue(b>0);
- assertEquals(c,(char)b);
+ Assert.assertThat("expect valid char integer", b, greaterThan(0));
+ assertEquals("expect characters to be same", c,(char)b);
}
client.close();

Back to the top