mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 19:55:17 +01:00
Fixed a few code smells for tests.
This commit is contained in:
parent
3cbcf52319
commit
41631e8a18
@ -367,9 +367,6 @@ public class IslandBuilder {
|
|||||||
b = world.getBlockAt(x, y, z + 1);
|
b = world.getBlockAt(x, y, z + 1);
|
||||||
b.setType(Material.MAGMA);
|
b.setType(Material.MAGMA);
|
||||||
|
|
||||||
// Add island items
|
|
||||||
y = islandHeight;
|
|
||||||
|
|
||||||
// Place a helpful sign in front of player
|
// Place a helpful sign in front of player
|
||||||
placeSign(x, islandHeight + 5, z + 3);
|
placeSign(x, islandHeight + 5, z + 3);
|
||||||
// Place the chest - no need to use the safe spawn function
|
// Place the chest - no need to use the safe spawn function
|
||||||
|
@ -182,7 +182,7 @@ public class IslandBanEnforcerTest {
|
|||||||
// Should not be cancelled
|
// Should not be cancelled
|
||||||
assertFalse(e.isCancelled());
|
assertFalse(e.isCancelled());
|
||||||
// User should see no message from this class
|
// User should see no message from this class
|
||||||
Mockito.verify(notifier, Mockito.never());
|
Mockito.verify(notifier, Mockito.never()).notify(Mockito.any(), Mockito.any());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -201,7 +201,7 @@ public class IslandBanEnforcerTest {
|
|||||||
// Should be cancelled
|
// Should be cancelled
|
||||||
assertTrue(e.isCancelled());
|
assertTrue(e.isCancelled());
|
||||||
// Player should see a message
|
// Player should see a message
|
||||||
Mockito.verify(notifier);
|
Mockito.verify(notifier).notify(Mockito.any(), Mockito.any());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -248,7 +248,7 @@ public class IslandBanEnforcerTest {
|
|||||||
ibe.onPlayerMove(e);
|
ibe.onPlayerMove(e);
|
||||||
assertFalse(e.isCancelled());
|
assertFalse(e.isCancelled());
|
||||||
// Confirm no check is done on the island
|
// Confirm no check is done on the island
|
||||||
Mockito.verify(im, Mockito.never());
|
Mockito.verify(im, Mockito.never()).getProtectedIslandAt(Mockito.any());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -274,7 +274,7 @@ public class IslandBanEnforcerTest {
|
|||||||
// Move vehicle
|
// Move vehicle
|
||||||
ibe.onVehicleMove(new VehicleMoveEvent(vehicle, from, to));
|
ibe.onVehicleMove(new VehicleMoveEvent(vehicle, from, to));
|
||||||
// Confirm no check is done on the island
|
// Confirm no check is done on the island
|
||||||
Mockito.verify(im, Mockito.never());
|
Mockito.verify(im, Mockito.never()).getProtectedIslandAt(Mockito.any());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
Reference in New Issue
Block a user