Set the type of a Move to something else then 0, 1, 2 or 3 Bug.
wee-zard opened this issue · 0 comments
wee-zard commented
Arrange:
- 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 Move Class with the following parameters:
- type=6
- the other parameters can be anything.
Assert:
- The constructor will handle that the type is not 0, 1, 2 or 3 (because there are only 4 types of moves, written by the javadoc to the Move class. They can 0=Accurate, 1=Wide, 2=Crit and 3=Healing).
Excepting:
- We got an exception or a warning that we cannot make a new Move with a type of 6.
Actually:
- We can freely make a new "move" with the type of 6, and we do not get any warning.