[ https://jira.codehaus.org/browse/MIDEA-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MIDEA-58. ------------------------------- Resolution: Won't Fix Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out. > Improved support for IDEA's JUnit Plugin > ---------------------------------------- > > Key: MIDEA-58 > URL: https://jira.codehaus.org/browse/MIDEA-58 > Project: Maven IDEA Plugin (RETIRED) > Issue Type: Improvement > Reporter: James Talmage > Priority: Minor > > I added this snippet to workspace.xml, and now IDEA's JUnit plugin behaves in > accordance with Maven's standard directory layout. > Clicking "create JUnit Test for this method", will now create the test file > under src/test instead of src/main. > {code:title=src/main/resources/templates/default/workspace.xml|borderStyle=solid} > ... > <component name="ClassPatternConfiguration"> > <testPatterns> > <classPattern testedClass="src/main/java/$DIRECTORY$/$CLASS$" > testClass="src/test/java/$DIRECTORY$/$CLASS$Test" /> > </testPatterns> > </component> > ... > {code} > I haven't tested it on a version of IDEA that doesn't have the JUnit plugin > installed, but my understanding is that it will just be ignored. > You can configure these settings as the default in IDEA ({color:blue}File | > Template Project Settings{color}) . But those are global (it would affect > non-maven projects). In lieu of making the above changes, adding a > recommendation to change IDEA's default settings in the plugin documentation > could be helpful to some users. > Possible Enhancements: > * Offer support for non standard directory layouts. > * Allow additional patterns to be specified in the POM -- This message was sent by Atlassian JIRA (v6.1.6#6162)