Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

spring mvc tests do not run from IDEA

$
0
0

Hello,

 

recently I have just checked new spring module called: spring-test (from Spring 3.2 - yes I know IDEA 12 has support for 3.1).

I created simple tests but I could not run theme from IDEA (ctrl + shift + F10).

 

The same tests I can run from:

  • Eclipse STS and
  • Netbeans 7.3,
  • via mvn clean install or
  • mvn test -Dtest=ControllerNameTest from terminal (cmd)

 

but when I run them from IDEA I get:

java.lang.IllegalStateException: Failed to load ApplicationContext 
Caused by: java.io.FileNotFoundException: src\main\webapp\WEB-INF\servlet-context.xml

 

I set context xml file path to:

 

@ContextConfiguration("file:src/main/webapp/WEB-INF/servlet-context.xml")

 

Issue occures on:

- Windows 7

- IDEA 12

- Spring 3.2

 

Greetings

Sławek


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>