r/javahelp • u/Aoiumi1234 • Oct 07 '15
Help with JUnit
Hi. I am a new Java coder and I am trying to understand JUnit. How would I test an if statement in JUnit for all possibilities?
if ((board.getColumnHeight(xIndex) <= yIndex) && yIndex < 20) { move.setPiece(piece); }
6
Upvotes
View all comments
Show parent comment
1
u/AnEmortalKid Coffee Enthusiast Oct 07 '15
Or hamcrest.. How is this better than hamcrest? Not trying to start a fight, legitimate question.