Show
Ignore:
Timestamp:
08/03/08 10:01:16 AM (5 months ago)
Author:
octorian
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/LogicMailTests/src/org/logicprobe/LogicMail/mail/imap/ImapProtocolTest.java

    r261 r263  
    351351        try { 
    352352            instance.addExecuteExpectation( 
    353                 "FETCH", "1:1 (FLAGS ENVELOPE)", 
     353                "FETCH", "1:1 (FLAGS UID ENVELOPE)", 
    354354                new String[] { 
    355                     "* 1 FETCH (FLAGS (\\Answered \\Seen) " + 
     355                    "* 1 FETCH (FLAGS (\\Answered \\Seen) UID 10 " + 
    356356                    "ENVELOPE (\"Mon, 12 Mar 2007 19:38:31 -0700\" \"Re: Calm down! :-)\" " + 
    357357                    "((\"jim smith\" NIL \"jsmith\" \"scratch.test\")) " + 
     
    369369             
    370370            assertEquals(1, result[0].index); 
     371            assertEquals(10, result[0].uid); 
    371372            assertNotNull(result[0].flags); 
    372373            assertTrue(result[0].flags.answered); 
     
    428429        try { 
    429430            instance.addExecuteExpectation( 
    430                 "FETCH", "1:1 (FLAGS ENVELOPE)", 
     431                "FETCH", "1:1 (FLAGS UID ENVELOPE)", 
    431432                new String[] { 
    432433                    "* 1 FETCH (" + 
     
    439440                    "NIL " + 
    440441                    "\"<4690A4EF.3070302@mail.scratch.test>\") " + 
    441                     "FLAGS (\\Seen))" 
     442                    "FLAGS (\\Seen) UID 10)" 
    442443                }); 
    443444            ImapProtocol.FetchEnvelopeResponse[] result = instance.executeFetchEnvelope(1, 1); 
     
    447448             
    448449            assertEquals(1, result[0].index); 
     450            assertEquals(10, result[0].uid); 
    449451            assertNotNull(result[0].flags); 
    450452            assertTrue(result[0].flags.seen); 
     
    506508        try { 
    507509            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" }); 
    511513            assertNotNull(result); 
    512514             
     
    526528        try { 
    527529            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" }); 
    531533            assertNotNull(result); 
    532534