1 36 package org.columba.ristretto.smtp; 37 38 import java.io.ByteArrayInputStream ; 39 import java.io.IOException ; 40 41 import junit.framework.TestCase; 42 43 public class SMTPInputStreamTest extends TestCase { 44 45 public void testResponse() throws IOException , SMTPException { 46 String responseString = "250 message\r\n"; 47 SMTPInputStream in = new SMTPInputStream( new ByteArrayInputStream (responseString.getBytes())); 48 49 SMTPResponse response = in.readSingleLineResponse(); 50 assertTrue(response != null); 51 } 52 53 } 54 | Popular Tags |