for JAXRS these classes are tested indirectly in systest/jaxrs/JAXRSMultipartProvider test, for JAXWS - in MTOM related tests in systest/jaxws.
The patch looks good - can you please recreate it against the trunk ?
And move throwing WebApplicationException to org.apache.cxf.jaxrs.provider.MultipartProvider.readFrom,
List<Attachment> infos =
AttachmentUtils.getAttachments(mc, attachmentDir, attachmentThreshold);
catch (CacheSizeExceededException ex)
throw new WebApplicationException(413);
as in SOAP case it will have to be 500...
Unfortunately I won;t have time today to recreate the patch against the trunk - so if you can do it then shortly then I might be able to apply later this evening or may be Dan can do it later if he is OK with the changes, thanks