Skip to content

Commit 33e1c0c

Browse files
tastybentoclaude
andcommitted
Replace assertTrue(x == y) with assertEquals in AcidEffectTest (S5785)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 029ea55 commit 33e1c0c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/test/java/world/bentobox/acidisland/listeners/AcidEffectTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)