From 4fe85c9c1e7347f6f3f4cbbe10f27545507e6f89 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Thu, 19 Jan 2012 13:42:07 -0600 Subject: [PATCH] additional more informative test error messages --- .../org/eclipse/jetty/io/nio/SelectChannelEndPointTest.java | 6 ++++-- 1 file 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 f7e672ed98c..3b781cd3278 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();