1 package org.columba.mail.folder; 19 20 import java.io.ByteArrayInputStream ; 21 22 23 29 public class AttributeTest extends AbstractFolderTst { 30 31 public AttributeTest(String arg0) { 32 super(arg0); 33 } 34 38 public AttributeTest(MailboxTstFactory factory, String test) { 39 super(factory, test); 40 41 } 42 43 47 public void test() throws Exception { 48 String input = FolderTstHelper.getString(0); 50 System.out.println("input=" + input); 51 52 ByteArrayInputStream inputStream = FolderTstHelper 54 .getByteArrayInputStream(input); 55 56 Object uid = getSourceFolder().addMessage(inputStream); 58 59 getSourceFolder().setAttribute(uid, "columba.spam", Boolean.TRUE); 60 61 Boolean result = (Boolean ) getSourceFolder().getAttribute(uid, "columba.spam"); 62 63 assertEquals("attribute columba.spam", Boolean.TRUE, result); 64 } 65 } 66 | Popular Tags |