Skip to content

Conversation

@leofernandesmo
Copy link

@leofernandesmo leofernandesmo commented Aug 4, 2020

Platforms affected

All

Motivation and Context

Test code may contain undesirable duplication. Solutions are similar to those for normal code duplication as described by Fowler.
Removing duplication helps maintainability of the test.

Description

I applied extract method and defined constants for duplicate strings.

Testing

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • Commit is prefixed with (platform) if this change only applies to one platform (e.g. (android))
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

Copy link
Contributor

@raphinesse raphinesse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. If you could address my comment that would be great!

@raphinesse raphinesse added this to the 9.0.1 milestone Oct 6, 2020
@raphinesse raphinesse changed the title Removed duplicate code in test test(java): remove duplicate code in BackButtonMultipageTest Oct 6, 2020
@breautek
Copy link
Contributor

breautek commented Nov 21, 2020

PR forcefully closed when I rebased the PR branch with apache's master. Supposedly because there are no new commits however I still have the original change commit... looks like I'm going to have to open a new PR for it.

I think this was caused because this original PR was linked to their master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants