Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The problem with TDD is that a dedicated developer can always make a test pass- the how is another matter.


when(mockObject.getVar()).thenReturn(1); assertEquals(1, mockObject.getVar());

test passes boss!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: