From 7050973b116f9aa752810d7db7082da8380456cc Mon Sep 17 00:00:00 2001 From: tastybento Date: Sat, 31 Aug 2024 20:08:44 -0700 Subject: [PATCH] Fix tests --- .../world/bentobox/bentobox/managers/island/IslandCacheTest.java | 1 + 1 file changed, 1 insertion(+) 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