Questions about assertEquals (true)
2 posts in topic
Flat View  Flat View

Posted By:   juanita_J
Posted On:   Friday, November 24, 2006 07:03 AM

I have downloaded junit 4.2 and I have writter a suitable
class that extends TestCase. I want to use
assertEquals(boolean) which I've seen that exists in
the API of TestCase however the compilation error says that method assertEquals(double, double, double) is not
applicable for the arguments boolean. It does
recognize the assertEquals(boolean)...

Do you have any clue why?

Thanks in advance...

Re: Questions about assertEquals (true)

Posted By:   sushant_kumar  
Posted On:   Friday, January 19, 2007 05:31 AM

what you are telling is not so convincing. can you just
paste your code . what u r telling will never happen .

Check whether you have written assertEquals(true); in proper case or not , i am taking about case sensitiveness .

Re: Questions about assertEquals (true)

Posted By:   Anonymous  
Posted On:   Monday, November 27, 2006 08:58 AM

Have a look at your code: do you really invoke assertEquals(boolean)? Why the compiler tries to use a method with three arguments?
About | Sitemap | Contact