JWebUnit for checking file downloads

I am trying to check the File Download field with JWebUnit , but I do not know how to do this. I see that JWebUnit has a dependency on common-fileupload , so I expect this to be possible, but I don't see anything documented so that this function might as well not exist. I did some extensive searches and searches, so I think that I’ll even go soon to check the JWebUnit tracking code, but I'm still not sure how to do this. How can I make sure the file is added to the HTTP message when the submit form button in the test is clicked? Thank.

+3
source share
1 answer

Well, as it turned out, after some searching in the source code, I found the test in line 77 of the test file , which basically explains how it works by doing this.

+3
source

Source: https://habr.com/ru/post/1758300/


All Articles