- Timestamp:
- 08/03/08 10:01:16 AM (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/LogicMailTests/src/org/logicprobe/LogicMail/mail/imap/ImapProtocolTest.java
r261 r263 351 351 try { 352 352 instance.addExecuteExpectation( 353 "FETCH", "1:1 (FLAGS ENVELOPE)",353 "FETCH", "1:1 (FLAGS UID ENVELOPE)", 354 354 new String[] { 355 "* 1 FETCH (FLAGS (\\Answered \\Seen) " +355 "* 1 FETCH (FLAGS (\\Answered \\Seen) UID 10 " + 356 356 "ENVELOPE (\"Mon, 12 Mar 2007 19:38:31 -0700\" \"Re: Calm down! :-)\" " + 357 357 "((\"jim smith\" NIL \"jsmith\" \"scratch.test\")) " + … … 369 369 370 370 assertEquals(1, result[0].index); 371 assertEquals(10, result[0].uid); 371 372 assertNotNull(result[0].flags); 372 373 assertTrue(result[0].flags.answered); … … 428 429 try { 429 430 instance.addExecuteExpectation( 430 "FETCH", "1:1 (FLAGS ENVELOPE)",431 "FETCH", "1:1 (FLAGS UID ENVELOPE)", 431 432 new String[] { 432 433 "* 1 FETCH (" + … … 439 440 "NIL " + 440 441 "\"<4690A4EF.3070302@mail.scratch.test>\") " + 441 "FLAGS (\\Seen) )"442 "FLAGS (\\Seen) UID 10)" 442 443 }); 443 444 ImapProtocol.FetchEnvelopeResponse[] result = instance.executeFetchEnvelope(1, 1); … … 447 448 448 449 assertEquals(1, result[0].index); 450 assertEquals(10, result[0].uid); 449 451 assertNotNull(result[0].flags); 450 452 assertTrue(result[0].flags.seen); … … 506 508 try { 507 509 instance.addExecuteExpectation( 508 " STORE", "5 +FLAGS (\\Answered)",509 new String[] { "* 5 FETCH (FLAGS (\\Seen \\Answered) )" });510 ImapProtocol.MessageFlags result = instance.executeStore( 5, true, new String[] { "\\Answered" });510 "UID STORE", "15 +FLAGS (\\Answered)", 511 new String[] { "* 5 FETCH (FLAGS (\\Seen \\Answered) UID 15)" }); 512 ImapProtocol.MessageFlags result = instance.executeStore(15, true, new String[] { "\\Answered" }); 511 513 assertNotNull(result); 512 514 … … 526 528 try { 527 529 instance.addExecuteExpectation( 528 " STORE", "5 -FLAGS (\\Answered)",529 new String[] { "* 5 FETCH (FLAGS () )" });530 ImapProtocol.MessageFlags result = instance.executeStore( 5, false, new String[] { "\\Answered" });530 "UID STORE", "15 -FLAGS (\\Answered)", 531 new String[] { "* 5 FETCH (FLAGS () UID 15)" }); 532 ImapProtocol.MessageFlags result = instance.executeStore(15, false, new String[] { "\\Answered" }); 531 533 assertNotNull(result); 532 534
