Write junit tests for the attack method and speedup method


Problem

Think of test cases for Space Shooter Assume each enemy has a health value of 100.

When attacked, the health should reduce by 20, until it reaches 0 at which point the enemy is considered as destroyed and a boolean in the enemy instance called destroyed is set to true. There is also a speedup(int CS207 Page 4 of 4 increase) method for enemies, which should increase by the value passed in to the method to a maximum of 10.

Write JUnit tests for the attack() method and the speedup(int increase) method?

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write junit tests for the attack method and speedup method
Reference No:- TGS03212797

Expected delivery within 24 Hours