Skip to content

We can add the Util.SHIELD moveset twice to an instance of a SpecialMoveset class twice, as special moveset Bug #30

@wee-zard

Description

@wee-zard

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 a SpecialMoveset Class
  • Store this instance in a variable
  • Check if addSMove() method is declared and implemented in the SpecialMoveset Class
  • Call the addSMove() method on the variable (that stores an instance of the SpecialMoveset Class) and call it with a Util.SHIELD as parameter, and do it twice.

Assert:

  • Only one moveset should be stored as special moveset.

Excepting:

  • Only 1 moveset is stored as special moveset in the variable.

Actually:

  • The size of the array is 2, so we stored twice the Util.SHIELD as moveset.

bug4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions