[ANN] unitTest 0.301

unitTest plugin has been updated to support Demetra 5175. New in this build is some error handling/validation with regards to test patterns.

0

It has error when click JUnit button in Template Project Settings (unitTest v0.302 in Demetra 5181)

(SingleConfigurableEditor.java:10)
	at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b(ControlPanelSettingsEditor.java:121)
	at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$900(ControlPanelSettingsEditor.java:127)
	at com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1.mouseReleased(ControlPanelSettingsEditor.java:7)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
	at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:14)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:45)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:77)
	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:730)
	at com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions(ShowSettingsUtilImpl.java:40)
	at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:26)
	at com.intellij.ide.actions.TemplateProjectPropertiesAction.actionPerformed(TemplateProjectPropertiesAction.java:3)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:9)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:16)
	at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:265)
	at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:201)
	at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:1)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:11)
	at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:14)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
]]>

0

Thanx, i'll install this version and run some tests, it has only been tested up to version 5175

0

I think you should have an option to disable your plugin 'cause not all projects will use unit testing, or maybe they use TestNG.

0

Not a bad idea to add a disbale option, though the plugin pretty much sleeps when the "refactor test elements as associated tested elements are" checkbox is deselected in the options tab of the plugin control panel the same would be needed for "Annotate untested methods with icon in gutter" checkbox. The only extra that could be added would be to disable the key-board shortcuts/ event listeners.

There is some value, though, in adding a "short-cut" and an obvious option to disable the plugin, i will add for the next version.

P.S. I have not yet been able to duplicate your error in version 5181. Could you give me more detailed information as to the steps you took, OS etc?

0

Reproduce:

+ Goto menu File, then Template Project Settings (not Settings)
+ Click JUnit, you will get this exception

I'm using Windows XP with SP 2, JDK 6 beta 2 build 76 and Demetra build 5181.



Attachment(s):
unitTest.png
0

New version uploaded, tested with idea version 4.5.4 through to 5201.

Added an option to disable the plugin.
Fixed NullPointerException when viewing the plugin in the project template settings.

0

请先登录再写评论。