Hello! I been trying to learn JUnit testning but I have problems with how to do it. Does anyone have time to do it and explain? This is a void method so it does not return anything so how do I test it?
public void randomStarter(){ // Set this.currentPlayer to 1 or 2 based on random.
Random randomizer = new Random();
this.currentPlayer = randomizer.nextInt(2)+1;
}