14 comments
Comment actions Permalink

While the Ctrl-T navigation works fine, the automated test case creation and syncronization to have broken.

Build 802
Platform: WinXP

0
Comment actions Permalink

I do not have any problem except with innerclass that is not really well
supported right now.
Do you have a test case:

  • full qualified name of tested class

  • full qualified name of test class

  • tested pattern

  • test pattern


Thanks

Jacques
"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:6332447.1047333171352.JavaMail.jrun@is.intellij.net...

While the Ctrl-T navigation works fine, the automated test case creation

and syncronization to have broken.
>

Build 802
Platform: WinXP



0
Comment actions Permalink

Hi,

Is there an older version of JUnitTestPlugin available? I'm using 3.0.2
(build 696). I can't get the 0.5 version to work with 696.

thanks
Per Thomas

Jacques Morel wrote:

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

Changes: Recompiled under 802





0
Comment actions Permalink

Is there an older version of JUnitTestPlugin available? I'm using 3.0.2
(build 696). I can't get the 0.5 version to work with 696.


http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin?rev=r1.20

download plugin @ the bottom :
http://www.intellij.org/twiki/bin/viewfile/Main/JUnitTestPlugin?rev=1.4&filename=unitTest.zip

hth,
-j

0
Comment actions Permalink

Added back the link in the download section, sorry.
Since this is the second person to ask me, how many people use the plugin on
3.0 and how long do they intend to do so?
If there are enough people using it on 3.0, I might try to come up with a
backward compatible scheme for the upcoming features.

Jacques
"m.milicevic" <RE_THISjjooee@chello.nl> wrote in message
news:b4kls7$vp5$1@is.intellij.net...

Is there an older version of JUnitTestPlugin available? I'm using 3.0.2
(build 696). I can't get the 0.5 version to work with 696.


http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin?rev=r1.20

download plugin @ the bottom :
http://www.intellij.org/twiki/bin/viewfile/Main/JUnitTestPlugin?rev=1.4&file
name=unitTest.zip

hth,
-j



0
Comment actions Permalink

Jacques Morel wrote:

Since this is the second person to ask me, how many people use the plugin
on 3.0 and how long do they intend to do so?


Personally, I intend to use 3.0.x as my 'main' IDE until Aurora stabilizes a
bit. I can image that some people will stick with 3.0.x series until 4.0.x
is released...

Cu,
Edwin

0
Comment actions Permalink

I have the same problem, the test class does not get created by the plugin.
Once I create it manually, the test methods' creation and the navigation are
OK.

The pattern goes like this:
src/com/$PACKAGE$/$CLASS$
src/test/$PACKAGE$/$CLASS$Test

And here's the entry in IDEA's log when it tries to create the test class:

2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
IntelliJ IDEA (Aurora) Build #802
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
JDK: 1.4.1_02
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
VM: Java HotSpot(TM) Client VM
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
Vendor: Sun Microsystems Inc.
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
OS: Windows 2000
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
Last Action: JUnitTestPlugin.ToggleTestCaseTestedClassAction
2003-03-11 11:39:33,890 ERROR - intellij.plugins.PluginManager -
java.lang.NullPointerException
at com.intellij.psi.a.f.a.i.a(i.java:207)
at com.intellij.psi.a.cb.findFile(cb.java:24)
at
org.intellij.plugins.util.PsiClassManager.findPrimaryClass(PsiClassManager.j
ava:32)
at
org.intellij.plugins.junit.UnitTestClassLocator.findTestClass(UnitTestClassL
ocator.java:21)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.findTestClass(GoToUni
tTestHandler.java:167)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.findOrCreateTestClass
(GoToUnitTestHandler.java:73)
at
org.intellij.plugins.junit.actions.GoToUnitTestHandler.execute(GoToUnitTestH
andler.java:38)
at
org.intellij.plugins.junit.actions.ToggleTestCaseTestedClassAction.actionPer
formed(ToggleTestCaseTestedClassAction.java:55)
at com.intellij.openapi.a.c.e.a(e.java:144)
at com.intellij.openapi.a.c.e.b(e.java:125)
at com.intellij.openapi.a.c.e.a(e.java:23)
at com.intellij.ide.t.dispatchEvent(t.java:1)
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)

Build 802 on Win2K.

Thx,
Andrei

"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:b4jre5$71n$1@is.intellij.net...

I do not have any problem except with innerclass that is not really well
supported right now.
Do you have a test case:

  • full qualified name of tested class

  • full qualified name of test class

  • tested pattern

  • test pattern

>

Thanks

>

Jacques
"Dave Griffith" <dave.griffith@cnn.com> wrote in message
news:6332447.1047333171352.JavaMail.jrun@is.intellij.net...

While the Ctrl-T navigation works fine, the automated test case creation

and syncronization to have broken.
>

Build 802
Platform: WinXP

>
>


0
Comment actions Permalink

Yup, that's it. My pattern is

src/$PACKAGE$/$CLASS$ -> test/$PACKAGE$/$CLASS$TestCase

0
Comment actions Permalink

a.. Fix NPE on switch to an non-existent test class (Thanks AndreiOprea
and DaveGriffith for reporting it)
http://www.intellij.org/twiki/bin/view/Main/JUnitTestPlugin


0
Comment actions Permalink

i just down 0.6
but it make a mistake
i copy something from my log file
anybody can tell me why?
how to fix?



ERROR - com.intellij.ide.IdeEventQueue - Last Action:
2003-03-13 19:19:38,453 ERROR - com.intellij.ide.IdeEventQueue -
java.lang.NoSuchMethodError: org.apache.oro.text.regex.Util.substitute(Ljava/lang/StringBuffer;Lorg/apache/oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apache/oro/text/regex/Substitution;Ljava/lang/String;I)I
at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)
at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)
at org.intellij.plugins.util.RegexpUtil.escapeString(RegexpUtil.java:52)
at org.intellij.plugins.junit.ClassPattern.]]>(ClassPattern.java:16)
at org.intellij.plugins.junit.JUnitTestConfiguration.update(JUnitTestConfiguration.java:55)
at org.intellij.plugins.junit.JUnitTestConfiguration.initComponent(JUnitTestConfiguration.java:43)
at com.intellij.openapi.components.a.a.a(a.java:158)
at com.intellij.openapi.components.a.a.getComponent(a.java:152)
at com.intellij.openapi.components.a.a.j(a.java:61)
at com.intellij.openapi.components.a.a.f(a.java:38)
at com.intellij.openapi.project.b.c.s(c.java:46)
at com.intellij.openapi.project.b.d.s(d.java:91)
at com.intellij.openapi.project.b.c.u(c.java:48)
at com.intellij.openapi.project.b.s.b(s.java:126)
at com.intellij.ide.a.q.a(q.java:14)
at com.intellij.idea.x.t(x.java:4)
at com.intellij.idea.x.c(x.java:29)
at com.intellij.idea.k.run(k.java:5)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.t.a(t.java:7)
at com.intellij.ide.t.dispatchEvent(t.java:117)
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

Please do not cut the ERROR info before the exception when you submit a bug
report. They contain valid info, like the version of IDEA. What version are
u using? 0.6 only works on 802 not on Ariadna.
It is a very strange error since it is deep down in the oro package. Maybe
you could reinstall IDEA?
Sorry I could not be of more help

Jacques
"aiya" <itnadmin@jetbrains.com> wrote in message
news:5743047.1047554542747.JavaMail.jrun@is.intellij.net...

i just down 0.6
but it make a mistake
i copy something from my log file
anybody can tell me why?
how to fix?

>
>
>

ERROR - com.intellij.ide.IdeEventQueue - Last Action:
2003-03-13 19:19:38,453 ERROR -

com.intellij.ide.IdeEventQueue -

java.lang.NoSuchMethodError:

org.apache.oro.text.regex.Util.substitute(Ljava/lang/StringBuffer;Lorg/apach
e/oro/text/regex/PatternMatcher;Lorg/apache/oro/text/regex/Pattern;Lorg/apac
he/oro/text/regex/Substitution;Ljava/lang/String;I)I

at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)
at org.apache.oro.text.perl.Perl5Util.substitute(Unknown Source)
at org.intellij.plugins.util.RegexpUtil.escapeString(RegexpUtil.java:52)
at org.intellij.plugins.junit.ClassPattern.<clinit>(ClassPattern.java:16)
at

org.intellij.plugins.junit.JUnitTestConfiguration.update(JUnitTestConfigurat
ion.java:55)

at

org.intellij.plugins.junit.JUnitTestConfiguration.initComponent(JUnitTestCon
figuration.java:43)

at com.intellij.openapi.components.a.a.a(a.java:158)
at com.intellij.openapi.components.a.a.getComponent(a.java:152)
at com.intellij.openapi.components.a.a.j(a.java:61)
at com.intellij.openapi.components.a.a.f(a.java:38)
at com.intellij.openapi.project.b.c.s(c.java:46)
at com.intellij.openapi.project.b.d.s(d.java:91)
at com.intellij.openapi.project.b.c.u(c.java:48)
at com.intellij.openapi.project.b.s.b(s.java:126)
at com.intellij.ide.a.q.a(q.java:14)
at com.intellij.idea.x.t(x.java:4)
at com.intellij.idea.x.c(x.java:29)
at com.intellij.idea.k.run(k.java:5)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at com.intellij.ide.t.a(t.java:7)
at com.intellij.ide.t.dispatchEvent(t.java:117)
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

re: http://www.intellij.org/twiki/bin/viewfile/Main/JUnitTestPlugin?rev=1.4&filename=unitTest.zip

I tried this plugin with IDEA build 695, and find it thoroughly confusing...

Given these Property settings:

Tested Class = src/$PACKAGE$/$CLASS$
Test Class = test/src/$PACKAGE$/Test$CLASS$

I hit Ctrl-T on class com.ftid.skar.webServices.dto.IssuerDetails in directory J:/projects/src, and it asked me asked me if I wanted to create class J:/projects/test/src/com/ftid/skar/webServices/dto/TestIssuerDetails.java. This looks correct, but when I confirm, it creates source file J:/projects/test/src/com/ftid/skar/server/uat/TestIssuerDetails.java containing this package statement: package com.ftid.skar.server.uat;

If I hit Ctrl-T old the original class to be tested expecting to switch to the new test class, it fails to find the new test class and does nothing if I confirm I want to create it.

If I try to undo the creation of the new test class, I'm asked if I want to 'Undo Create Test Class :/projects/test/src/com/ftid/skar/webServices/dto/TestIssuerDetails.java'. However, the undo works, and deletes the new file, even though it's not where the undo command says...

Any ideas on what I'm doing wrong?

Dave

0
Comment actions Permalink

How many source roots do you have and what are they?
Could you send me a test project?

Thanks

Jacques

0
Comment actions Permalink

Apart from JDK source and EJB source roots, there are 3 source roots:

1. Project application source
2. Project test case source
3. Apache Axis source

I have attached the project file.



Attachment(s):
SKAR.ipr
0

Please sign in to leave a comment.