From: Jeff M. <cus...@us...> - 2004-11-22 14:46:12
|
Update of /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24538/src/j2ee/common/com/mockobjects/mail Modified Files: MockMessage.java Log Message: Did some stuff Index: MockMessage.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/j2ee/common/com/mockobjects/mail/MockMessage.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- MockMessage.java 20 Nov 2002 19:10:23 -0000 1.2 +++ MockMessage.java 22 Nov 2004 14:45:58 -0000 1.3 @@ -24,6 +24,7 @@ private final ExpectationValue myText = new ExpectationValue("text"); private final ExpectationValue myContent = new ExpectationValue("content"); private final ExpectationValue myMimeType = new ExpectationValue("mime type"); + private final ExpectationValue outputStream = new ExpectationValue("outputStream"); public Address[] getFrom() throws MessagingException { notImplemented(); @@ -201,8 +202,12 @@ myContent.setActual(multipart); } + public void setExpectedOutputStream(OutputStream outputStream) { + this.outputStream.setExpected(outputStream); + } + public void writeTo(OutputStream stream) throws IOException, MessagingException { - notImplemented(); + outputStream.setActual(stream); } public javax.mail.Message getRealMessage() { |