I'm getting the error" java.lang.IllegalStateExcepton: Failed to load the application context "when I run my unit I'm trying to Testing from inside the eclipse
The unit looks very simple in the test:
package com.mycompany.interactive.cs.isales.ispr.ws.productupgrade; Import org.junit.assert; Import org.junit.Test; Import org.junit.runner.RunWith; Import organization Source: Import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; @RunWith (SpringJUnit4ClassRunner.class) @ContextConfiguration (locations = { "/ applicationContext.xml"}) public class ProductUpgradeTest {@Test public void getProductUpgrade (throws Exception {//System.out.println (PrintClasspath.getClasspathAsString ())); Assert.assertTrue (true); }}
But no matter what I start doing with , @ContextConfiguration
.
applicationContext.xml I still get the same error file is within a folder / etc / ws, but even if I put a copy in the same folder, it's still me errors is.
I am very new to Java, Spring, Eclipse and Ant, and in fact it is not known why this is going wrong.
No comments:
Post a Comment