Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
3TUSK committed Sep 10, 2024
1 parent 79706fb commit 791caeb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ public void setup() {
} catch (IOException e) {
Assertions.fail(e);
}

GameProfile dummyProfile = new GameProfile(UUID.randomUUID(), "Test Player Please Ignore");
Mockito.when(this.mockPlayer.getGameProfile()).thenReturn(dummyProfile);
}

@Test
Expand Down Expand Up @@ -110,6 +107,9 @@ public void testLoad() {

@Test
public void testSave() {
GameProfile dummyProfile = new GameProfile(UUID.randomUUID(), "Test Player Please Ignore");
Mockito.when(this.mockPlayer.getGameProfile()).thenReturn(dummyProfile);

Path claimStoreRoot = this.fsRoot.getPath("/area-control");
JsonBasedAreaRepository repo = new JsonBasedAreaRepository(claimStoreRoot);

Expand Down

0 comments on commit 791caeb

Please sign in to comment.