Lines Matching refs:check

127             check(sent == remaining, "sent should be equal to remaining");
128 check(buffer.position() == (position + sent),
145 check(sent == remaining, "sent should be equal to remaining");
146 check(buffer.position() == (position + sent),
168 check(buffer.remaining() == remaining,
170 check(buffer.position() == position,
188 check(buffer.remaining() == remaining,
190 check(buffer.position() == position,
229 check(buffer.remaining() == remaining,
231 check(buffer.position() == position,
236 check(handler.receivedCommUp(), "should have received COMM_UP");
252 * substitute with a native buffer, then check that its position
266 check(sent == remaining, "sent should be equal to remaining");
267 check(buffer.position() == (offset + sent),
326 check(info != null, "info is null");
327 check(info.streamNumber() == 0,
329 check(info.bytes() == Util.SMALL_MESSAGE.getBytes("ISO-8859-1").
331 check(info.bytes() == buffer.remaining(), "bytes != remaining");
332 check(Util.compare(buffer, Util.SMALL_MESSAGE),
346 check(info != null, "info is null");
347 check(info.streamNumber() == handler.maxOutStreams() - 1,
349 check(info.bytes() == Util.LARGE_MESSAGE.getBytes("ISO-8859-1").
351 check(info.bytes() == buffer.remaining(), "bytes != remaining");
352 check(Util.compare(buffer, Util.LARGE_MESSAGE),
374 check(info != null, "info is null");
375 check(info.streamNumber() == 0, "message not sent on the correct stream");
376 check(info.bytes() == expected.remaining(),
378 check(info.bytes() == buffer.remaining(), "bytes != remaining");
379 check(expected.equals(buffer),
450 void check(boolean cond) {if (cond) pass(); else fail();}
451 void check(boolean cond, String failMessage) {if (cond) pass(); else fail(failMessage);}