Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding an Item to the Equipment with the addEquip() method while the index of the Item is 0 or 1 Bug #35

Open
wee-zard opened this issue Dec 2, 2023 · 0 comments

Comments

@wee-zard
Copy link

wee-zard commented Dec 2, 2023

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 Equipment Class
  • Creating an Item with a type value of 0.
  • Adding this Item to the Equipment with the addEquip() method.

Assert:

  • The method will handle that the type is not greater or equals then 2.

Actually:

  • We got ArrayIndexOutOfBoundsException.

bugEquipment
bugEquipment2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant