Question: Question 4 [JUnit Test] (14 marks) The GameState class is the class to be tested. The class contains a method totalScores which will be used
![Question 4 [JUnit Test] (14 marks) The GameState class is the](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f91c3a22919_72166f91c39b7581.jpg)
Question 4 [JUnit Test] (14 marks) The GameState class is the class to be tested. The class contains a method totalScores which will be used to calculate the score of a player and return the result as integer value. This method need to be tested. public class GameState { public int totalscores (int currentScores, int remainingLives) { if (currentScores
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
