Menu

#16 MockServletOutputStream.print() vs .println()

open
nobody
None
5
2003-01-05
2003-01-05
No

When using mockobjects-0.07-j1.4-j2ee1.3.jar and
associated alt jar and junning jdk v1.4.1/junit v3.8.1......

.println() works under j1.4 but not .print()

Example
In Servlet Request Handling Function
PrintWriter wr = response.getWriter();

//This will produce output obtainable via
//myMockHttpResponse.getOutputStreamContents()
wr.println( "Hello" );

//This howerver, will not
wr.print( "Hello" );

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.