public void setFileContents ( final String key , final byte [ ] contents ) { MockFileItem fileItem = new MockFileItem ( ) ; fileItem . set ( contents ) ; files . put ( key , new FileItem [ ] { fileItem } ) ; }
Sets mock file upload contents .