Skip to content

Commit 2f33094

Browse files
authored
Merge pull request iluwatar#645 from amitdash291/patch-1
Removed redundant times(1) params for verify()
2 parents 193879d + a2a08a3 commit 2f33094

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: bridge/src/test/java/com/iluwatar/bridge/WeaponTest.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ protected final void testBasicWeaponActions(final Weapon weapon) {
4444
assertNotNull(weapon.getEnchantment());
4545

4646
weapon.swing();
47-
verify(enchantment, times(1)).apply();
47+
verify(enchantment).apply();
4848
verifyNoMoreInteractions(enchantment);
4949

5050
weapon.wield();
51-
verify(enchantment, times(1)).onActivate();
51+
verify(enchantment).onActivate();
5252
verifyNoMoreInteractions(enchantment);
5353

5454
weapon.unwield();
55-
verify(enchantment, times(1)).onDeactivate();
55+
verify(enchantment).onDeactivate();
5656
verifyNoMoreInteractions(enchantment);
5757

5858
}

0 commit comments

Comments
 (0)