Lines Matching refs:check

128             check(handler.receivedCommUp(), "SCTP_COMM_UP not received");
129 check(info != null, "info is null");
130 check(info.address() != null, "address is null");
131 check(info.association() != null, "association is null");
132 check(info.isComplete(), "message is not complete");
133 check(info.isUnordered() != true,
135 check(info.streamNumber() >= 0, "invalid stream number");
136 check(info.payloadProtocolID() == PPID, "PPID incorrect");
137 check(info.bytes() == Util.SMALL_MESSAGE.getBytes("ISO-8859-1").
139 check(info.bytes() == buffer.remaining(), "bytes != remaining");
140 check(Util.compare(buffer, Util.SMALL_MESSAGE),
156 check(info != null, "info is null");
157 check(info.address() != null, "address is null");
158 check(info.association() != null, "association is null");
159 check(info.isComplete(), "message is not complete");
160 check(info.isUnordered() != true,
162 check(info.streamNumber() >= 0, "invalid stream number");
163 check(info.bytes() == Util.LARGE_MESSAGE.getBytes("ISO-8859-1").
165 check(info.bytes() == buffer.remaining(), "bytes != remaining");
166 check(Util.compare(buffer, Util.LARGE_MESSAGE),
174 check(info != null, "info is null");
175 check(info.bytes() == -1, "should have received EOF");
176 check(buffer.position() == 0, "buffer position should be unchanged");
195 check(info == null, "channel should return null");
196 check(handler2.receivedCommUp(), "SCTP_COMM_UP not received");
197 check(buffer.position() == 0, "buffer position should be unchanged");
202 check(info == null, "non-blocking channel should return null");
203 check(buffer.position() == 0, "buffer position should be unchanged");
347 void check(boolean cond) {if (cond) pass(); else fail();}
348 void check(boolean cond, String failMessage) {if (cond) pass(); else fail(failMessage);}