tangara goh wrote:But, I find this fake "passed" can be very dangerous to people who are ignorant about it.
What fake "passed"? You want to see if the contents of two arrays are equal right? Then just don't use the
!= operator, because it doesn't compare array contents.
Therefore, I find JUnit itself is not 100% reliable....
Like Tim, I really don't understand what you mean by this. JUnit is fine, and should be your first choice for writing unit tests.
If your tests are unreliable, that's your fault, not JUnit's.