You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ian Shafer <ia...@1321.org> on 2006/04/16 21:22:16 UTC

Anybody running m2 and JUnit 4.0?

I tried this, using the JUnit4TestAdapter, but I get this exception:

java.lang.IllegalArgumentException: object is not an instance of  
declaring class


I'm using Java 1.5.

Ian


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Anybody running m2 and JUnit 4.0?

Posted by Wayne Fay <wa...@gmail.com>.
You might also want to ask on the JUnit Yahoo Group email list?

Wayne

On 4/16/06, Ian Shafer <ia...@1321.org> wrote:
> Thanks, Boris. I saw this thread, but the JUnit4TestAdapter technique
> doesn't seem to work for me. I have a feeling I'm forgetting
> something simple so I'm wondering if anybody else has seen the
> IllegalArgumentException and if so, what the fix is.
>
> Ian
>
>
> On Apr 16, 2006, at 12:30 PM, Boris Lenzinger wrote:
>
> Is it related to surefire and junit 4 ?
>
> then check this thread [M2] surefire plugin and JUnit 4 (was on
> April, 10th)
>
>
> Ian Shafer a écrit :
> > I tried this, using the JUnit4TestAdapter, but I get this exception:
> >
> > java.lang.IllegalArgumentException: object is not an instance of
> > declaring class
> >
> >
> > I'm using Java 1.5.
> >
> > Ian
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Anybody running m2 and JUnit 4.0?

Posted by Ian Shafer <ia...@1321.org>.
Thanks, Boris. I saw this thread, but the JUnit4TestAdapter technique  
doesn't seem to work for me. I have a feeling I'm forgetting  
something simple so I'm wondering if anybody else has seen the  
IllegalArgumentException and if so, what the fix is.

Ian


On Apr 16, 2006, at 12:30 PM, Boris Lenzinger wrote:

Is it related to surefire and junit 4 ?

then check this thread [M2] surefire plugin and JUnit 4 (was on  
April, 10th)


Ian Shafer a écrit :
> I tried this, using the JUnit4TestAdapter, but I get this exception:
>
> java.lang.IllegalArgumentException: object is not an instance of  
> declaring class
>
>
> I'm using Java 1.5.
>
> Ian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Anybody running m2 and JUnit 4.0?

Posted by Boris Lenzinger <bo...@gmail.com>.
Is it related to surefire and junit 4 ?

then check this thread [M2] surefire plugin and JUnit 4 (was on April, 10th)


Ian Shafer a écrit :
> I tried this, using the JUnit4TestAdapter, but I get this exception:
>
> java.lang.IllegalArgumentException: object is not an instance of 
> declaring class
>
>
> I'm using Java 1.5.
>
> Ian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org