File tree Expand file tree Collapse file tree
src/test/java/world/bentobox/acidisland/listeners Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ void testOnSeaBounce() {
228228 ae .onSeaBounce (e );
229229 ArgumentCaptor <Vector > argument = ArgumentCaptor .forClass (Vector .class );
230230 verify (player ).setVelocity (argument .capture ());
231- assertTrue ( argument .getValue ().getBlockY () == 1D );
231+ assertEquals ( 1D , argument .getValue ().getBlockY ());
232232 }
233233
234234 /**
@@ -595,7 +595,7 @@ void testGetDamageReducedFullDiamond() {
595595 when (equip .getChestplate ()).thenReturn (new ItemStack (Material .DIAMOND_CHESTPLATE ));
596596 when (player .getEquipment ()).thenReturn (equip );
597597 double a = AcidEffect .getDamageReduced (player );
598- assertTrue ( a == 0.8 );
598+ assertEquals ( 0.8 , a );
599599 }
600600
601601 /**
@@ -824,7 +824,7 @@ void testGetDamageReducedNoArmor() {
824824 EntityEquipment equip = mock (EntityEquipment .class );
825825 when (player .getEquipment ()).thenReturn (equip );
826826 double a = AcidEffect .getDamageReduced (player );
827- assertTrue ( a == 0D );
827+ assertEquals ( 0D , a );
828828 }
829829
830830 /**
You can’t perform that action at this time.
0 commit comments