* @version $Id: UnstructuredFieldTest.java,v 1.2 2004/10/02 12:41:11 ntherning Exp $
*/
public class UnstructuredFieldTest extends TestCase {
public void testGetBody() throws Exception {
UnstructuredField f = null;
f = (UnstructuredField) Field.parse("Subject: Yada\r\n yada yada\r\n");
assertEquals("Testing folding value 1", "Yada yada yada", f.getValue());
f = (UnstructuredField) Field.parse("Subject: \r\n\tyada");
assertEquals("Testing folding value 2", " \tyada", f.getValue());
f = (UnstructuredField) Field.parse("Subject:yada");
assertEquals("Testing value without a leading ' '", "yada", f.getValue());
}