Removed redundant times(1) params for verify()
This commit is contained in:
parent
fb4c0f77e5
commit
a2a08a3a3e
@ -44,15 +44,15 @@ public abstract class WeaponTest {
|
|||||||
assertNotNull(weapon.getEnchantment());
|
assertNotNull(weapon.getEnchantment());
|
||||||
|
|
||||||
weapon.swing();
|
weapon.swing();
|
||||||
verify(enchantment, times(1)).apply();
|
verify(enchantment).apply();
|
||||||
verifyNoMoreInteractions(enchantment);
|
verifyNoMoreInteractions(enchantment);
|
||||||
|
|
||||||
weapon.wield();
|
weapon.wield();
|
||||||
verify(enchantment, times(1)).onActivate();
|
verify(enchantment).onActivate();
|
||||||
verifyNoMoreInteractions(enchantment);
|
verifyNoMoreInteractions(enchantment);
|
||||||
|
|
||||||
weapon.unwield();
|
weapon.unwield();
|
||||||
verify(enchantment, times(1)).onDeactivate();
|
verify(enchantment).onDeactivate();
|
||||||
verifyNoMoreInteractions(enchantment);
|
verifyNoMoreInteractions(enchantment);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user