How to make an unit test always pass?

Posted by brain_damage on Stack Overflow See other posts from Stack Overflow or by brain_damage
Published on 2010-06-05T13:54:07Z Indexed on 2010/06/05 14:02 UTC
Read the original article Hit count: 126

Filed under:
|
|
|

Let's assume someone has to write a solution to a problem and I have to test his solution with some tests. Is it possible (maybe with reflections or something) his program to pass all my tests, but to have nothing in common with the real solution to the problem?

© Stack Overflow or respective owner

Related posts about java

Related posts about reflection