Spring testing support in IntelliJ IDEA 10

Please try IntelliJ IDEA X (EAP) with new Spring testing related support. There is a number of things to note:

1. @ContextConfiguration support with completion, navigation, usages search and error highlighting

2. @TransactionConfiguration

3. All Spring related inspections, quick fixes and annotators are supported for corresponding TestContext Framework configurations.

Tried IntelliJ IDEA 10 EAP already? Let us know what you think!

Develop with pleasure!
The JetBrains Team

This entry was posted in New Features and tagged , , , . Bookmark the permalink.

4 Responses to Spring testing support in IntelliJ IDEA 10

  1. Tomek N. says:

    I always use @ContextConfiguration annotation without locations parameter, so for example if Spring test case is named MyServiceTest Spring looks for MyServiceTest-context.xml file by convention. Would it be possible to have a shortcut to quickly jump between the Spring test case and XML files (similar to Ctrl + Shift + T – test case and class under test)?

    If one does not use convention and provide locations parameter, this shortcut would jump to the file pointed by this parameter (or even display quick menu allowing to choose file if more than one specified).

  2. Timo Meinen says:

    +1 for the fast navigation between the Test and the -context.xml file. That is what I would love to have all the time, when building Spring tests.

  3. coder says:

    Great feature! However, noticed a small issue when specifying @ContextConfiguration with Maven based projects. Only happens when @ContextConfiguration is without parameters.

    It complains “Cannot find default app context file” for maven projects even if the default app context file exists in src/test/resources/x/x/MyTest-context.xml. I can overcome this issue with something like @ContextConfiguration(“/x/x/MyTest-context.xml”).

    Also, default app context file creation (via ALT+ENTER) creates is in src/test/java instead of src/test/resources.

  4. hitioneacat says:

    we like this game!

    variant1

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">