Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Feb 20, 2021
1 parent 5f750ab commit 9c7dd53
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/java/com/wasteofplastic/invswitcher/StoreTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.Collections;
import java.util.Comparator;
import java.util.UUID;

Expand Down Expand Up @@ -47,6 +48,8 @@ public class StoreTest {
@Mock
private World world;

private com.wasteofplastic.invswitcher.Settings sets;

@Before
public void setUp() {
BentoBox plugin = mock(BentoBox.class);
Expand Down Expand Up @@ -74,6 +77,10 @@ public void setUp() {
// World 2
World fromWorld = mock(World.class);
when(fromWorld.getName()).thenReturn("from_the_end_nether");

sets = new com.wasteofplastic.invswitcher.Settings();
when(addon.getSettings()).thenReturn(sets);
when(addon.getWorlds()).thenReturn(Collections.singleton(world));
}

@After
Expand Down

0 comments on commit 9c7dd53

Please sign in to comment.