I am trying to write a unit test for handling a file upload controller using Spring 3. Now if I send the image over to my service method through the controller everything wo
new DiskFileItem(fieldName, contentType, isFormField, fileName, sizeThreshold, file);
results in a null value. Look into the docs to see what's wrong or maybe you pass some null as parameters
null