[Bluej-discuss] Unit Testing with Java 6 and BlueJ 2.2.0
Lon Levy
LXL at oregon.k12.wi.us
Tue Sep 11 22:57:07 BST 2007
Greetings,
When I was working with my first unit tests of the school year, I got the following error message:
reference to assertEquals is ambiguous, both method assertEquals(java.lang.Object, java.lang.Object) in junit.framework.Assert and method assertEquals(int, int) in junit.framework.Assert match
The particular line in my test is:
assertEquals(1, Fraction.gcf(17, 31));
and the static gcf method of the Fraction class that I wrote should return an Integer.
I don't recall this problem last year when I was using Java 5 and BlueJ 2.1.3
Recommendations? Help!
Thank you,
Lon.
Lon Levy, MS-CSEd
Computer Science Teacher
Volunteer Computer Club Advisor
Oregon High School
608-835-1316
Lon.Levy at oregonsd.org
LXL at oregon.k12.wi.us
cs at levytree.net
non somnos requiem
More information about the bluej-discuss
mailing list