I am running the next test:
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.bean
In your case you should use:
@ContextConfiguration(locations = "file:src/main/resources/META-INF/spring/applicationContext.xml")
Another hint, I see that you use your production applicationContext.xml
in your test environment, IMHO it's not a good practice, try use a specific one for testing like applicationContext-test.xml
, so you can play with your test context without hurting your production environment.