Hi all,

I'm quietly tearing my hair out...

I'm working on a project in eclipse3.3 WTP, JDK 1.6 with junit4
tests.  Eclipse 3.3 comes with ant1.7...something.

Using the ant javac task like this:
<javac srcdir="${build.tests.src.dir}"
    destdir="${build.tests.classes.dir}"
    classpathref="classpath"
    source="1.6"
    target="1.6"/>

I am getting this error:
<error>
reference to assertEquals is ambiguous, both method
assertEquals(java.lang.Object,java.lang.Object) in org.junit.Assert
and method assertEquals(long,long) in org.junit.Assert match
</error>
 where the line of source is:
Assert.assertEquals(67, anIntegerObject);

Oddly, eclipse doesn't have a problem compiling the source.  I could
understand if eclipse gave the error trying to compile the source...

What am I missing?  Has anyone else had this problem?  I'm struggling
to find a solution short of changing the source to:
Assert.assertEquals(67L, anIntegerObject.longValue());

or something like that.  Is this a junit4 issue?

Will be very greatful for any ideas!

Cheers,
Bruce
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CTJUG Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/CTJUG-Forum
For the ctjug home page see http://www.ctjug.org.za
-~----------~----~----~----~------~----~------~--~---

Reply via email to