Lines Matching defs:check

105             check(sent == remaining, "sent should be equal to remaining");
106 check(buffer.position() == (position + sent),
113 check(info != null, "info is null");
114 check(info.streamNumber() == streamNumber,
116 check(info.bytes() == Util.SMALL_MESSAGE.getBytes("ISO-8859-1").
118 check(info.bytes() == buffer.remaining(), "bytes != remaining");
119 check(Util.compare(buffer, Util.SMALL_MESSAGE),
125 check(assocs.size() == 1, "there should be only one association");
127 check(it.hasNext());
142 check(sent == remaining, "sent should be equal to remaining");
143 check(buffer.position() == (position + sent),
150 check(info != null, "info is null");
151 check(info.streamNumber() == streamNumber,
153 check(info.bytes() == Util.LARGE_MESSAGE.getBytes("ISO-8859-1").
155 check(info.bytes() == buffer.remaining(), "bytes != remaining");
156 check(Util.compare(buffer, Util.LARGE_MESSAGE),
179 check(buffer.remaining() == remaining,
181 check(buffer.position() == position,
189 * substitute with a native buffer, then check that its position
202 check(sent == remaining, "sent should be equal to remaining");
203 check(buffer.position() == (offset + sent),
260 check(info != null, "info is null");
261 check(info.streamNumber() == 0,
263 check(info.bytes() == Util.SMALL_MESSAGE.getBytes("ISO-8859-1").
265 check(info.bytes() == buffer.remaining(), "bytes != remaining");
266 check(Util.compare(buffer, Util.SMALL_MESSAGE),
269 check(info != null, "info is null");
271 check(assocs.size() == 1, "there should be only one association");
273 check(it.hasNext());
294 check(info.streamNumber() == assoc.maxInboundStreams() - 1,
296 check(info.bytes() == Util.LARGE_MESSAGE.getBytes("ISO-8859-1").
298 check(info.bytes() == buffer.remaining(), "bytes != remaining");
299 check(Util.compare(buffer, Util.LARGE_MESSAGE),
324 check(info != null, "info is null");
325 check(info.streamNumber() == 0, "message not sent on the correct stream");
326 check(info.bytes() == expected.remaining(),
328 check(info.bytes() == buffer.remaining(), "bytes != remaining");
329 check(expected.equals(buffer),
352 void check(boolean cond) {if (cond) pass(); else fail();}
353 void check(boolean cond, String failMessage) {if (cond) pass(); else fail(failMessage);}