You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Anil Agrawal <a....@popnet.co.in> on 2003/05/15 14:21:59 UTC
message changes in webRequest.setUserData
In one of the servlet test case I am setting input stream
in request.setUserData();
File encFile = new File("Seq-01.txt");
InputStream in = new FileInputStream(encFile);
webRequest.setUserData(in);
--------------------------------------
My servlet reads above data which is set in request scope.
Surprisingly this message change when I read it from my servlet.
--------------------------------------
When I run the same test using simple junit test, It
works fine.
In simple junit test I have to take URL connection and
wrtite output stream my self. But message remains intact.
pl. note that "Seq-01.txt" content is encrypted and encoded.
--------------------------------------------------------
I want to do the test using cactus test framework.
pl. help me.