You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuring the environment (with for example Gradle v3.3).
Importing the junit .jar files, so we can run junit test cases.
Act:
Making an instance of Particle Class
Store this instance in a variable
Call the init() method on this variable, with the following params: int type, Vector2 position, Vector2 velocity, float lifespan, int numFrames and float delay.
Assert:
A new particle instance will be created after the call of the init() method.
Excepting:
No unnecessary line of codes run in the method.
Actually:
There is an if statement that check, if the anim variable is null and if yes, then assign this variable a null, but the variable already has the value of null, so the if statement is unnecessary in the init() method.
Possible solution:
Delete the 81 line of the Particle Class, since the anim variable has been already assigned to this value.
The text was updated successfully, but these errors were encountered:
Arrange:
Act:
Assert:
Excepting:
Actually:
Possible solution:
The text was updated successfully, but these errors were encountered: