[ANN] JUnitTestPlugin 0.15 available

http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin

Changes:

  • Recompiled for 876

  • Fix template variable name of the test class (was CLASS_NAME and is now NAME like the normal IDEA class template)

  • Fix NPE on cancel of choosing the template used (reported by Bas Leijdekkers)

  • Fix "File Header" include not found if it isn't modified

  • Fix the changing of the test pattern only affecting the navigation and creation of test class/method and not

untested method highlighting and auto-refactoring (reported by Bas Leijdekkers)

  • Change pattern $PACKAGE$ variable to $DIRECTORY$ to avoid confusion since this will match any directory

whether it is a package or just a directory

  • Add template variables USER, DATE, TIME, TESTED_CLASS_NAME, TESTED_CLASS_PACKAGE_NAME

2 comments
Comment actions Permalink

Great, great! This is one of my favorite plugins.

I also love seeing my name in the release notes:-) As a consequence I
quickly went in search of another stacktrace;-). I got this one opening
a project in a new frame.

2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl - Assertion failed: Access to psi files
should be performed only after startup activity
2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl - IntelliJ IDEA (Aurora) Build #876
2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl - JDK: 1.4.2
2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl - VM: Java HotSpot(TM) Client VM
2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl - Vendor: Sun Microsystems Inc.
2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl - OS: Windows 2000
2003-08-05 16:54:24,378 ERROR -
impl.file.impl.FileManagerImpl -
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:114)
at com.intellij.psi.impl.d.a.k.b(k.java:155)
at com.intellij.psi.impl.d.a.k.b(k.java:408)
at com.intellij.psi.impl.d.a.k.a(k.java:392)
at com.intellij.psi.impl.d.a.k.a(k.java:76)
at com.intellij.psi.impl.cb.b(cb.java:37)
at com.intellij.psi.impl.cb.getPsiFile(cb.java:74)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:82)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:147)
at
org.intellij.plugins.junit.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:117)
at
org.intellij.plugins.junit.JUnitTestConfiguration.update(JUnitTestConfiguration.java:99)
at
org.intellij.plugins.junit.JUnitTestConfiguration.projectOpened(JUnitTestConfiguration.java:63)
at com.intellij.openapi.project.a.d.c(d.java:133)
at com.intellij.openapi.project.a.d.b(d.java:122)
at com.intellij.openapi.project.a.k.projectOpened(k.java:7)
at com.intellij.openapi.project.a.l.projectOpened(l.java:24)
at com.intellij.openapi.project.a.w.h(w.java:96)
at com.intellij.openapi.project.a.w.a(w.java:24)
at com.intellij.ide.i.p.a(p.java:40)
at com.intellij.ide.cr.actionPerformed(cr.java:2)
at com.intellij.openapi.actionSystem.b.k.actionPerformed(k.java:6)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.b.bb.fireActionPerformed(bb.java:38)
at com.intellij.ui.b.a.t.doClick(t.java:178)
at com.intellij.ui.b.a.t.access$300(t.java:71)
at com.intellij.ui.b.a.u.mouseReleased(u.java:2)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.s.a(s.java:62)
at com.intellij.ide.s.dispatchEvent(s.java:6)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2003-08-05 16:54:24,388 ERROR -
impl.file.impl.FileManagerImpl - Assertion failed: Access to psi files
should be performed only after startup activity
2003-08-05 16:54:24,388 ERROR -
impl.file.impl.FileManagerImpl - IntelliJ IDEA (Aurora) Build #876
2003-08-05 16:54:24,398 ERROR -
impl.file.impl.FileManagerImpl - JDK: 1.4.2
2003-08-05 16:54:24,398 ERROR -
impl.file.impl.FileManagerImpl - VM: Java HotSpot(TM) Client VM
2003-08-05 16:54:24,398 ERROR -
impl.file.impl.FileManagerImpl - Vendor: Sun Microsystems Inc.
2003-08-05 16:54:24,398 ERROR -
impl.file.impl.FileManagerImpl - OS: Windows 2000
2003-08-05 16:54:24,398 ERROR -
impl.file.impl.FileManagerImpl -
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:114)
at com.intellij.psi.impl.d.a.k.b(k.java:155)
at com.intellij.psi.impl.d.a.k.b(k.java:408)
at com.intellij.psi.impl.d.a.k.b(k.java:408)
at com.intellij.psi.impl.d.a.k.a(k.java:392)
at com.intellij.psi.impl.d.a.k.a(k.java:76)
at com.intellij.psi.impl.cb.b(cb.java:37)
at com.intellij.psi.impl.cb.getPsiFile(cb.java:74)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.markUntestedMethodsInEditor(UntestedMethodHighlighter.java:82)
at
org.intellij.plugins.junit.UntestedMethodHighlighter.mark(UntestedMethodHighlighter.java:147)
at
org.intellij.plugins.junit.JUnitTestConfiguration.updateUntestedMethodHighlighterState(JUnitTestConfiguration.java:117)
at
org.intellij.plugins.junit.JUnitTestConfiguration.update(JUnitTestConfiguration.java:99)
at
org.intellij.plugins.junit.JUnitTestConfiguration.projectOpened(JUnitTestConfiguration.java:63)
at com.intellij.openapi.project.a.d.c(d.java:133)
at com.intellij.openapi.project.a.d.b(d.java:122)
at com.intellij.openapi.project.a.k.projectOpened(k.java:7)
at com.intellij.openapi.project.a.l.projectOpened(l.java:24)
at com.intellij.openapi.project.a.w.h(w.java:96)
at com.intellij.openapi.project.a.w.a(w.java:24)
at com.intellij.ide.i.p.a(p.java:40)
at com.intellij.ide.cr.actionPerformed(cr.java:2)
at com.intellij.openapi.actionSystem.b.k.actionPerformed(k.java:6)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.b.bb.fireActionPerformed(bb.java:38)
at com.intellij.ui.b.a.t.doClick(t.java:178)
at com.intellij.ui.b.a.t.access$300(t.java:71)
at com.intellij.ui.b.a.u.mouseReleased(u.java:2)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.s.a(s.java:62)
at com.intellij.ide.s.dispatchEvent(s.java:6)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

0
Comment actions Permalink

I could not reproduce this one.
Let me know if you have the same problem in 0.16

Jacques

0

Please sign in to leave a comment.