Fix tests

This commit is contained in:
tastybento 2024-08-31 20:08:44 -07:00
parent b4615697fc
commit 7050973b11

View File

@ -141,6 +141,7 @@ public class IslandCacheTest extends AbstractCommonSetup {
// 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