spring - Getting java.lang.reflect.InvocationTargetException when mocking MockMultipartHttpServletRequest -
i mocking mockmultiparthttpservletrequest below. please tell me causes java.lang.reflect.invocationtargetexception when debug single test case. @activeprofiles("development") @contextconfiguration(locations = { "classpath:asia/embla/fre/test/config/service-context.xml", "classpath:asia/embla/fre/test/config/data-context.xml" }) @runwith(springjunit4classrunner.class) public class bimdrawingservicetest { //private string ifcfilepath = "resources/famacweb-architect-2016-07-04.ifc"; @autowired private bimdrawingservice bimservice; @test public void manageupload(){ try { //multipartfile file = new mockmultipartfile("file", "famacweb-architect-2016-07-04.ifc", "text/plain", new fileinputstream(ifcfile)); mockmultiparthttpservletrequest request = new mockmultiparthttpservletrequest(); // assertequals("file na...