diff --git a/src/test/java/world/bentobox/bentobox/managers/island/IslandCacheTest.java b/src/test/java/world/bentobox/bentobox/managers/island/IslandCacheTest.java index 6c32505ae..7317a78a4 100644 --- a/src/test/java/world/bentobox/bentobox/managers/island/IslandCacheTest.java +++ b/src/test/java/world/bentobox/bentobox/managers/island/IslandCacheTest.java @@ -141,6 +141,7 @@ public void setUp() throws Exception { // database must be mocked here db = mock(Database.class); when(db.loadObject("uniqueId")).thenReturn(island); + when(db.objectExists(anyString())).thenReturn(true); when(db.saveObjectAsync(any())).thenReturn(CompletableFuture.completedFuture(true)); // New cache