Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
YeGoblynQueenne
on Nov 14, 2018
|
parent
|
context
|
favorite
| on:
Ask HN: What's the largest amount of bad code you ...
The problem with TDD is that a dedicated developer can always make a test pass- the how is another matter.
celvro
on Nov 14, 2018
[–]
when(mockObject.getVar()).thenReturn(1); assertEquals(1, mockObject.getVar());
test passes boss!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: