7 comments
Comment actions Permalink

Hi Jacques,

What version of Aurora is this supposed to work against? Using 1113 I get
exceptions from it left, right and centre. There is a NoClassDefFoundError
(the class org/intellij/openapi/testing/fileEditor/MockFileDocumentManager
is missing) on opening a project and a NullPointerException on closing one.
When trying to get to the settings page for the plugin, there's another
NullPointerException.

I've attached stack traces for each of the exceptions I mentioned above. Any
idea what's causing them?

Cheers,
Vil.

Jacques Morel wrote:

  • Fix detection of test class/tested class when used in project with multiple modules

  • Fix method template for tested method that throw an exception

  • Fix button to go from config to template editor


http://plugins.intellij.net/plugins/view/?id=unitTest
http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin


--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/
java.lang.NullPointerException
at org.intellij.plugins.junit.config.JUnitTestConfiguration.stopUntestedMethodHighlighter(JUnitTestConfiguration.java:91)
at org.intellij.plugins.junit.config.JUnitTestConfiguration.projectClosed(JUnitTestConfiguration.java:42)
at com.intellij.openapi.project.a.d.B(d.java:143)
at com.intellij.openapi.project.a.d.access$300(d.java:167)
at com.intellij.openapi.project.a.d$a_.projectClosed(d$a_.java:7)
at com.intellij.openapi.project.a.b$7.projectClosed(b$7.java:0)
at com.intellij.openapi.project.a.b.j(b.java:145)
at com.intellij.openapi.project.a.b.b(b.java:177)
at com.intellij.ide.k.f.b(f.java:46)
at com.intellij.ide.actions.o.actionPerformed(o.java:7)
at com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:7)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:61)
at com.intellij.ui.a.a.h.doClick(h.java:172)
at com.intellij.ui.a.a.h.access$300(h.java:150)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:7)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:50)
at com.intellij.ide.q.a(q.java:129)
at com.intellij.ide.q.dispatchEvent(q.java:71)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.lang.NoClassDefFoundError: org/intellij/openapi/testing/fileEditor/MockFileDocumentManager
at org.intellij.plugins.util.PsiClassManager.(PsiClassManager.java:28) at org.intellij.plugins.junit.config.ClassPatternConfig.initOnProjectOpened(ClassPatternConfig.java:40) at org.intellij.plugins.junit.config.JUnitTestConfiguration.initOnProjectOpened(JUnitTestConfiguration.java:47) at org.intellij.plugins.config.Config.projectOpened(Config.java:34) at com.intellij.openapi.project.a.d.A(d.java:67) at com.intellij.openapi.project.a.d.access$200(d.java:44) at com.intellij.openapi.project.a.d$a_.projectOpened(d$a_.java:2) at com.intellij.openapi.project.a.b$7.projectOpened(b$7.java:13) at com.intellij.openapi.project.a.b.i(b.java:15) at com.intellij.openapi.project.a.b.a(b.java:88) at com.intellij.ide.k.f.a(f.java:28) at com.intellij.ide.bg$c_.actionPerformed(bg$c_.java:3) at com.intellij.openapi.actionSystem.b.n$b_.actionPerformed(n$b_.java:7) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786) at com.intellij.openapi.actionSystem.b.n.fireActionPerformed(n.java:61) at com.intellij.ui.a.a.h.doClick(h.java:172) at com.intellij.ui.a.a.h.access$300(h.java:150) at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:7) at java.awt.Component.processMouseEvent(Component.java:5100) at java.awt.Component.processEvent(Component.java:4897) at java.awt.Container.processEvent(Container.java:1569) at java.awt.Component.dispatchEventImpl(Component.java:3615) at java.awt.Container.dispatchEventImpl(Container.java:1627) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128) at java.awt.Container.dispatchEventImpl(Container.java:1613) at java.awt.Window.dispatchEventImpl(Window.java:1606) at java.awt.Component.dispatchEvent(Component.java:3477) at java.awt.EventQueue.dispatchEvent(EventQueue.java:456) at com.intellij.ide.q.b(q.java:50) at com.intellij.ide.q.a(q.java:129) at com.intellij.ide.q.dispatchEvent(q.java:71) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137) at java.awt.EventDispatchThread.run(EventDispatchThread.java:100) Error message: Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(534,57),button=1,modifiers=Button1,clickCount=1] on frame0 java.lang.NullPointerException at org.intellij.plugins.junit.config.JUnitTestConfigurable.copyFromConfig(JUnitTestConfigurable.java:247) at org.intellij.plugins.config.ConfigEditor.reset(ConfigEditor.java:85) at org.intellij.plugins.junit.config.JUnitTestConfigurable.reset(JUnitTestConfigurable.java:229) at com.intellij.openapi.options.a.g.a(g.java:20) at com.intellij.openapi.options.a.g.a(g.java:106) at com.intellij.openapi.options.a.g.init(g.java:153) at com.intellij.openapi.options.a.g.]]>(g.java:25)
at com.intellij.ide.actions.c.c(c.java:29)
at com.intellij.ide.actions.c.a(c.java:21)
at com.intellij.ide.actions.df.actionPerformed(df.java:4)
at com.intellij.openapi.actionSystem.b.k.a(k.java:68)
at com.intellij.openapi.actionSystem.b.k.processMouseEvent(k.java:40)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:50)
at com.intellij.ide.q.a(q.java:129)
at com.intellij.ide.q.dispatchEvent(q.java:71)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

0
Comment actions Permalink

java.lang.NoClassDefFoundError: org/intellij/openapi/testing/fileEditor/MockFileDocumentManager

at org.intellij.plugins.util.PsiClassManager.(PsiClassManager.java:28) at org.intellij.plugins.junit.actions.JUnitTestCaseHandler.(JUnitTestCaseHandler.java:47) at org.intellij.plugins.junit.actions.MethodTestHandler.(MethodTestHandler.java:40) at org.intellij.plugins.junit.actions.GoToUnitTestHandler.]]>(GoToUnitTestHandler.java:44)

at org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.actionPerformed(ToggleTestCaseTestedClassAction.java:63)

at com.intellij.openapi.a.a.d.a(d.java:104)

at com.intellij.openapi.a.a.d.b(d.java:134)

at com.intellij.openapi.a.a.d.a(d.java:115)

at com.intellij.ide.q.a(q.java:64)

at com.intellij.ide.q.dispatchEvent(q.java:71)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

0
Comment actions Permalink

Sorry guys. Too late a night to release something apparently.
I will look at them ASAP.

Jacques

0
Comment actions Permalink

Jacques, I'm pretty this came up in the past, but are there plans to
support multiple source->test directory mappings. we use the following:

- src/api -> test/api
- src/impl -> test/unit
- src -> test/unit
- src -> test/ftest
- src -> test/wtest

-bk

0
Comment actions Permalink

Yep Barry. It is first or second on the feature list.

Jacques

0
Comment actions Permalink

Any idea what's causing them?


Since I do not have any of the exception you are having I will guess that they are all caused by the NoClassDefFoundError that leaves the plugin in uninitialized state. I changed a while back my common build script for the TDD plugin and stopped including my mocks in the distro. Unfortunately I forgot that I have dependencies on them.
The think I don't understand is why I did not get this exception. I though the classloading scope of each plugin was isolated. I can only fathom that I have one of my plugins that you don't have and since they all use the same core I picked the missing class and you did not.

Anyway I am uploading a new version. It should be ok now. I tested with a clean install and no other plugins.

Sorry for the inconvinience.

Jacques

0
Comment actions Permalink

Jacques Morel wrote:
>>Any idea what's causing them?


Since I do not have any of the exception you are having I will guess that they are all caused by the NoClassDefFoundError that leaves the plugin in uninitialized state. I changed a while back my common build script for the TDD plugin and stopped including my mocks in the distro. Unfortunately I forgot that I have dependencies on them.
The think I don't understand is why I did not get this exception. I though the classloading scope of each plugin was isolated. I can only fathom that I have one of my plugins that you don't have and since they all use the same core I picked the missing class and you did not.


That sounds plausible. I don't think I have any of your other plugins
installed (I don't use ClearCase, etc.)

Anyway I am uploading a new version. It should be ok now. I tested with a clean install and no other plugins.


Thanks! This is a great plugin. I've found it extremely useful.

Vil.
--
Vilya Harvey
vilya.harvey@digitalsteps.com / digital steps /
(W) +44 (0)1483 469 480
(M) +44 (0)7816 678 457 http://www.digitalsteps.com/

0

Please sign in to leave a comment.