Donald, I hope you took time to read the article as well as look at the
sample code.

The use of an inner class in this case is not to "test internal
implementation", in fact
it is not an inner class of the tested class, it is an inner class of the
test class, used to
specify a lot of test cases in a compact and readable manner. Concerning
package
and directory heirarchy that is exactly what I suggested. By letting IDEA
know
the root of your parallell directory hierarchy root, and agreeing to a
naming
convention it would be easy to jump between the test class and the tested
class.

I'm not asking for mental telepathy (even though it seems in some cases IDEA
delivers ;-)
, just a skeleton (suitable for most cases) to work from, a little help, and
a little
encouragement to write those tests. I don't think this needs to grow into a
very big feature.
I'm sure I haven't thought of everything, but it seem reasonably straight
forward.
There might be much better ways to achieve what I'm looking for. I just read
the article
and it seemed to me like this would be a decent solution to go about it.

As far as prioritizing the IntelliJ people�s time by not voting for "large
features" etc,
I've seen that discussion on this list before and I don't have much to add.

Regards,

Per Mellqvist


> Per Mellqvist wrote:
>
> > A Java Pro article "Discover Your Inner Classes" by Harris W. Kirk
> > (
> >
http://www.fawcette.com/javapro/2002_01/magazine/features/hkirk/default.asp
> > )
> > proposes a simple way of setting up Junit tests that are especially
> > convenient
> > when you need many test cases for a certain method.
>
> Donald F. Mc Lean wrote:
>
> The drawback of using inner classes is that it is harder to pull out
> those class files. I also am from the "do not test internal
> implementation because it is, well, internal", which would be the
> only real reason for inner classes.
>
> I prefer having my unit tests in the same package but in a different
> directory heirarchy.
>
>
> As far as automatically generating test classes goes, without mental
> telepathy I'm not sure how much easier it could get. I'm not sure that
> I'm interested in our very good friends at IntelliJ spending time on
> this when there are other much higher return capabilities that they
> could be working on.
>


_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-features

Reply via email to