Skip to content

Commit

Permalink
Merge pull request iluwatar#645 from amitdash291/patch-1
Browse files Browse the repository at this point in the history
Removed redundant times(1) params for verify()
  • Loading branch information
npathai authored Sep 27, 2017
2 parents 193879d + a2a08a3 commit 2f33094
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridge/src/test/java/com/iluwatar/bridge/WeaponTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ protected final void testBasicWeaponActions(final Weapon weapon) {
assertNotNull(weapon.getEnchantment());

weapon.swing();
verify(enchantment, times(1)).apply();
verify(enchantment).apply();
verifyNoMoreInteractions(enchantment);

weapon.wield();
verify(enchantment, times(1)).onActivate();
verify(enchantment).onActivate();
verifyNoMoreInteractions(enchantment);

weapon.unwield();
verify(enchantment, times(1)).onDeactivate();
verify(enchantment).onDeactivate();
verifyNoMoreInteractions(enchantment);

}
Expand Down

0 comments on commit 2f33094

Please sign in to comment.