additional more informative test error messages
This commit is contained in:
parent
8e262aca04
commit
4fe85c9c1e
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue