Searched defs:expect (Results 1 - 12 of 12) sorted by relevance

/javamail/mail/src/test/java/com/sun/mail/imap/
H A DIMAPAuthDebugTest.java100 * Scan the debug output looking for "expect", return true if found.
102 public boolean test(Properties properties, String expect) { argument
141 if (line.indexOf(expect) >= 0)
/javamail/mail/src/test/java/com/sun/mail/pop3/
H A DPOP3AuthDebugTest.java100 * Scan the debug output looking for "expect", return true if found.
102 public boolean test(Properties properties, String expect) { argument
142 if (line.indexOf(expect) >= 0)
/javamail/mail/src/test/java/com/sun/mail/smtp/
H A DSMTPAuthDebugTest.java100 * Scan the debug output looking for "expect", return true if found.
102 public boolean test(Properties properties, String expect) { argument
142 if (line.startsWith(expect))
/javamail/mail/src/test/java/javax/mail/internet/
H A DFoldTest.java63 private String expect; field in class:FoldTest
67 public FoldTest(String direction, String orig, String expect) { argument
70 this.expect = expect;
101 String expect = readString(in);
102 testData.add(new Object[] { line, orig, expect });
127 Assert.assertEquals("Fold", expect, MimeUtility.fold(0, orig));
129 Assert.assertEquals("Unfold", expect, MimeUtility.unfold(orig));
H A DInternetAddressFoldTest.java62 private String expect; field in class:InternetAddressFoldTest
66 public InternetAddressFoldTest(InternetAddress[] orig, String expect) { argument
68 this.expect = expect;
103 String expect = readString(in);
104 testData.add(new Object[] { orig, expect });
123 Assert.assertEquals("Fold", expect, InternetAddress.toString(orig, 0));
H A DHeaderTokenizerTest.java65 private String[] expect; field in class:HeaderTokenizerTest
76 public HeaderTokenizerTest(String heder, String value, String[] expect) { argument
79 this.expect = expect;
93 test(header, value, expect);
172 String[] expect = null;
176 expect = new String[nexpect];
178 expect[i] = in.readLine().trim();
182 expect = new String[1];
183 expect[
221 test(String header, String value, String expect[]) argument
[all...]
H A DInternetAddressTest.java182 String[] expect = null;
186 expect = new String[nexpect];
188 expect[i] = readLine(in).trim();
192 expect = new String[1];
193 expect[0] = "Exception";
205 expect, doStrict, doParseHeader });
208 expect, doStrict, doParseHeader);
267 public static void test(String header, String value, String expect[], argument
285 if (expect != null && al.length != expect
[all...]
H A DParameterListDecode.java195 String[] expect = null;
199 expect = new String[nexpect];
201 expect[i] = decode(trim(in.readLine()));
205 expect = new String[1];
206 expect[0] = "Exception";
216 expect);
264 public static void test(String header, String value, String expect[]) argument
285 expect.length, pl.size());
288 if (expect != null && pl.size() != expect
[all...]
/javamail/mail/src/test/java/com/sun/mail/imap/protocol/
H A DUIDSetTest.java72 public long[] expect; field in class:UIDSetTest.TestData
186 t.expect = null;
188 t.expect = new long[0];
198 t.expect = new long[uids.size()];
201 t.expect[i++] = l.longValue();
221 Assert.assertArrayEquals(t.expect, uids);
222 else if (!arrayEquals(t.expect, uids)) {
/javamail/mail/src/test/java/com/sun/mail/util/logging/
H A DDurationFilterTest.java731 private void testInitDuration(String d, long expect) throws Exception { argument
732 testInit("duration", d, expect);
735 private void testInitRecords(String r, long expect) throws Exception { argument
736 testInit("records", r, expect);
739 private void testInit(String field, String value, long expect) throws Exception { argument
749 assertEquals(expect, f.get(sf));
H A DMailHandlerTest.java144 } catch (UnknownHostException expect) {
196 private static void set(ClassLoader expect) { argument
197 if (expect == null) {
200 LOADER.set(expect);
239 static void checkContextClassLoader(ClassLoader expect) { argument
241 if (expect != ccl) {
242 AssertionError ae = new AssertionError(expect + " != " + ccl
269 ClassLoaderSecurityManager sm, ClassLoader expect) {
270 InternalErrorManager em = new ClassLoaderErrorManager(expect);
281 instance.setComparator(new ClassLoaderComparator(expect));
268 testCallingClassLoader( ClassLoaderSecurityManager sm, ClassLoader expect) argument
352 testVerify(ClassLoaderSecurityManager sm, ClassLoader expect) argument
416 testSetMailProperties(ClassLoaderSecurityManager sm, ClassLoader expect) argument
7865 private final Level expect; field in class:MailHandlerTest.LevelCheckingFormatter
7867 LevelCheckingFormatter(final Level expect) argument
8130 private final ClassLoader expect; field in class:MailHandlerTest.ClassLoaderErrorManager
8136 ClassLoaderErrorManager(final ClassLoader expect) argument
8169 private final ClassLoader expect; field in class:MailHandlerTest.ClassLoaderAuthenticator
8197 private final ClassLoader expect; field in class:MailHandlerTest.ClassLoaderComparator
8203 ClassLoaderComparator(final ClassLoader expect) argument
8235 private final ClassLoader expect; field in class:MailHandlerTest.ClassLoaderFilterFormatter
8242 ClassLoaderFilterFormatter(final ClassLoader expect) argument
8247 ClassLoaderFilterFormatter(final ClassLoader expect, String format) argument
[all...]
/javamail/mail/src/main/java/com/sun/mail/smtp/
H A DSMTPTransport.java2221 * @param expect the expected response code (-1 means don't care)
2225 public synchronized void issueCommand(String cmd, int expect) argument
2232 if (expect != -1 && resp != expect)
2239 private void issueSendCommand(String cmd, int expect) argument
2246 if ((ret = readServerResponse()) != expect) {

Completed in 38 milliseconds