Need help with JUnit plugin for a Maven project

Does anyone know the Pattern to use to have the test classes placed in Maven's test directory? Everytime I try it, it is invalid.

8 comments
Comment actions Permalink

Could you please explain the problem in details?

0
Comment actions Permalink

When it generates the class, it wants to put it into a test directory under the existing package. I want it to create the class in the maven test sources folder.

0
Comment actions Permalink

You mean 'Create Test' intention?
I still don't understand where you want to put test files to. Could you give me an example?

0
Comment actions Permalink

I am using a Maven layout. My sources go under src/main/java. I want the generated test classes to go under src/test/java with the same package name as the original class.

project_dir
--src
-


main
-


java
-


com.....
-


test
-


java
-


com....

0
Comment actions Permalink

You are probably using the previous 8.0 EAP.
In the last EAP you are asked to choose a destination folder if there are several.

0
Comment actions Permalink

I get this exception with the new build:
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(562,670),absolute(915,928),button=1,modifiers=Button1,clickCount=1] on dialog0: com.intellij.psi.PsiManager.findClass(Ljava/lang/String;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClass;
java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.findClass(Ljava/lang/String;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClass;
at org.intellij.plugins.junit.JUnitHelper.getTestCasePsiClass(JUnitHelper.java:59)
at org.intellij.plugins.junit.JUnitHelper.isUnitTest(JUnitHelper.java:81)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestable(UntestedMethodHighlighter.java:114)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:107)
at org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:163)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:67)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:60)
at org.intellij.plugins.junit.config.Config.configChanged(Config.java:71)
at org.intellij.plugins.config.ConfigEditor.apply(ConfigEditor.java:93)
at org.intellij.plugins.junit.config.JUnitTestConfigurable.apply(JUnitTestConfigurable.java:279)
at com.intellij.openapi.options.ex.ProjectConfigurableWrapper.apply(ProjectConfigurableWrapper.java:25)
at com.intellij.ide.ui.search.DefaultSearchableConfigurable.apply(DefaultSearchableConfigurable.java:27)
at com.intellij.openapi.options.ex.SingleConfigurableEditor.doOKAction(SingleConfigurableEditor.java:26)
at com.intellij.openapi.ui.DialogWrapper$OkAction.actionPerformed(DialogWrapper.java:920)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:151)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$300(ControlPanelSettingsEditor.java:150)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:17)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:48)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:36)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:1)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:109)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:18)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:70)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.findClass(Ljava/lang/String;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClass;
at org.intellij.plugins.junit.JUnitHelper.getTestCasePsiClass(JUnitHelper.java:59)
at org.intellij.plugins.junit.JUnitHelper.isUnitTest(JUnitHelper.java:81)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestable(UntestedMethodHighlighter.java:114)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:107)
at org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:163)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:67)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:60)
at org.intellij.plugins.junit.config.Config.configChanged(Config.java:71)
at org.intellij.plugins.config.ConfigEditor.apply(ConfigEditor.java:93)
at org.intellij.plugins.junit.config.JUnitTestConfigurable.apply(JUnitTestConfigurable.java:279)
at com.intellij.openapi.options.ex.ProjectConfigurableWrapper.apply(ProjectConfigurableWrapper.java:25)
at com.intellij.ide.ui.search.DefaultSearchableConfigurable.apply(DefaultSearchableConfigurable.java:27)
at com.intellij.openapi.options.ex.SingleConfigurableEditor$ApplyAction.actionPerformed(SingleConfigurableEditor.java:14)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:151)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$300(ControlPanelSettingsEditor.java:150)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:17)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:48)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:36)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:1)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:109)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:18)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:70)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.findClass(Ljava/lang/String;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClass;
at org.intellij.plugins.junit.JUnitHelper.getTestCasePsiClass(JUnitHelper.java:59)
at org.intellij.plugins.junit.JUnitHelper.isUnitTest(JUnitHelper.java:81)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestable(UntestedMethodHighlighter.java:114)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:107)
at org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:163)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:67)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:60)
at org.intellij.plugins.junit.config.Config.configChanged(Config.java:71)
at org.intellij.plugins.config.ConfigEditor.apply(ConfigEditor.java:93)
at org.intellij.plugins.junit.config.JUnitTestConfigurable.apply(JUnitTestConfigurable.java:279)
at com.intellij.openapi.options.ex.ProjectConfigurableWrapper.apply(ProjectConfigurableWrapper.java:25)
at com.intellij.ide.ui.search.DefaultSearchableConfigurable.apply(DefaultSearchableConfigurable.java:27)
at com.intellij.openapi.options.ex.SingleConfigurableEditor$ApplyAction.actionPerformed(SingleConfigurableEditor.java:14)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:151)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$300(ControlPanelSettingsEditor.java:150)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:17)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:48)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:36)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:1)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:109)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:18)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:70)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.findClass(Ljava/lang/String;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClass;
at org.intellij.plugins.junit.JUnitHelper.getTestCasePsiClass(JUnitHelper.java:59)
at org.intellij.plugins.junit.JUnitHelper.isUnitTest(JUnitHelper.java:81)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestable(UntestedMethodHighlighter.java:114)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:107)
at org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:163)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:67)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:60)
at org.intellij.plugins.junit.config.Config.configChanged(Config.java:71)
at org.intellij.plugins.config.ConfigEditor.apply(ConfigEditor.java:93)
at org.intellij.plugins.junit.config.JUnitTestConfigurable.apply(JUnitTestConfigurable.java:279)
at com.intellij.openapi.options.ex.ProjectConfigurableWrapper.apply(ProjectConfigurableWrapper.java:25)
at com.intellij.ide.ui.search.DefaultSearchableConfigurable.apply(DefaultSearchableConfigurable.java:27)
at com.intellij.openapi.options.ex.SingleConfigurableEditor$ApplyAction.actionPerformed(SingleConfigurableEditor.java:14)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:151)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$300(ControlPanelSettingsEditor.java:150)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:17)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:48)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:36)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:1)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:109)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:18)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:70)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



java.lang.NoSuchMethodError: com.intellij.psi.PsiManager.findClass(Ljava/lang/String;Lcom/intellij/psi/search/GlobalSearchScope;)Lcom/intellij/psi/PsiClass;
at org.intellij.plugins.junit.JUnitHelper.getTestCasePsiClass(JUnitHelper.java:59)
at org.intellij.plugins.junit.JUnitHelper.isUnitTest(JUnitHelper.java:81)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestClass(UntestedMethodHighlighter.java:184)
at org.intellij.plugins.junit.UntestedMethodHighlighter.isTestable(UntestedMethodHighlighter.java:114)
at org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:107)
at org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:163)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:67)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.updateInternalState(JUnitTestConfiguration.java:60)
at org.intellij.plugins.junit.config.Config.configChanged(Config.java:71)
at org.intellij.plugins.config.ConfigEditor.apply(ConfigEditor.java:93)
at org.intellij.plugins.junit.config.JUnitTestConfigurable.apply(JUnitTestConfigurable.java:279)
at com.intellij.openapi.options.ex.ProjectConfigurableWrapper.apply(ProjectConfigurableWrapper.java:25)
at com.intellij.ide.ui.search.DefaultSearchableConfigurable.apply(DefaultSearchableConfigurable.java:27)
at com.intellij.openapi.options.ex.SingleConfigurableEditor.doOKAction(SingleConfigurableEditor.java:26)
at com.intellij.openapi.ui.DialogWrapper$OkAction.actionPerformed(DialogWrapper.java:920)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:151)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$300(ControlPanelSettingsEditor.java:150)
at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:17)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.$$YJP$$doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java)
at java.awt.Dialog.show(Dialog.java:1095)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:41)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:45)
at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:812)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:48)
at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:36)
at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:1)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:109)
at com.intellij.openapi.actionSystem.impl.ActionButton.a(ActionButton.java:18)
at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:70)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:122)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:78)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:189)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

0
Comment actions Permalink

It seems that your JUnit plugin is incompatible with the build: PsiPanager.findClass has been moved to JavaPsiFacade.

0
Comment actions Permalink

this works for me:

src/main/$DIRECTORY$/$CLASS$

src/test/$DIRECTORY$/Test$CLASS$

0

Please sign in to leave a comment.