1 36 package org.columba.ristretto.imap.parser; 37 38 import junit.framework.TestCase; 39 40 import org.columba.ristretto.imap.CopyInfo; 41 import org.columba.ristretto.imap.IMAPResponse; 42 import org.columba.ristretto.parser.ParserException; 43 44 50 public class CopyInfoParserTest extends TestCase { 51 52 public void test() throws ParserException { 53 IMAPResponse response = IMAPResponseParser.parse("A003 OK [COPYUID 38505 304,319:320 3956:3958] Done\n"); 54 CopyInfo info = CopyInfoParser.parse(response); 55 56 assertEquals(38505, info.getUidValidity()); 57 assertEquals("304,319:320", info.getSrcUids().toString()); 58 assertEquals("3956:3958", info.getDestUids().toString()); 59 } 60 61 } 62 | Popular Tags |