Skip to content

Commit

Permalink
mockMvc fix after springboot update 2.4.1 : spring-projects/spring-fr…
Browse files Browse the repository at this point in the history
…amework#26261

forgot one
  • Loading branch information
cnader committed Dec 17, 2020
1 parent aa1de31 commit 366df06
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public void verifSignXMLdsigTestBadFile() throws Exception {
*/
@Test
public void verifSignXmldsigEnveloppeeDocAltereTest() throws Exception {
final MockMultipartFile document = new MockMultipartFile("file", Thread.currentThread().getContextClassLoader()
.getResourceAsStream("Signature_Dsig_enveloppee_document_modifie.xml"));
final MockMultipartFile document = new MockMultipartFile("file", "Signature_Dsig_enveloppee_document_modifie.xml",
null, Thread.currentThread().getContextClassLoader().getResourceAsStream("Signature_Dsig_enveloppee_document_modifie.xml"));
final MvcResult result = mockMvc.perform(MockMvcRequestBuilders.multipart("/validation/signatures/xmldsig").file(document)
.param("idVerifSignConf", "1").accept("application/json")).andExpect(status().isOk()).andDo(print()).andReturn();

Expand Down

0 comments on commit 366df06

Please sign in to comment.