org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [NoXmlFileTest.xml]; nested exception is java.io.FileNotFoundException: class path resource [NoXmlFileTest.xml] cannot be opened because it does not exist java.io.FileNotFoundException: class path resource [NoXmlFileTest.xml] cannot be opened because it does not exist at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137) ...
package org.springunit.examples.errors; import org.springunit.framework.SpringUnitContext; import org.springunit.framework.SpringUnitTest; public class NoXmlFileTest extends SpringUnitTest { public void testWillFail() throws Exception { } public SpringUnitContext getNoXmlFileTest() { return noXmlFileTest; } public void setNoXmlFileTest(SpringUnitContext noXmlFileTest) { this.noXmlFileTest = noXmlFileTest; } private SpringUnitContext noXmlFileTest; }
!! -- DOESN'T EXIST IN FILE SYSTEM OR CLASSPATH -- !!
Previous | Next |