Update to 1.14.2
This commit is contained in:
parent
ee63ebc7ac
commit
951c648311
2
pom.xml
2
pom.xml
@ -64,7 +64,7 @@
|
|||||||
<maven.minimumVersion>3.3.9</maven.minimumVersion>
|
<maven.minimumVersion>3.3.9</maven.minimumVersion>
|
||||||
|
|
||||||
<!-- Dependencies versions -->
|
<!-- Dependencies versions -->
|
||||||
<spigot.version>1.14-R0.1-SNAPSHOT</spigot.version>
|
<spigot.version>1.14.2-R0.1-SNAPSHOT</spigot.version>
|
||||||
|
|
||||||
<!-- Versioning properties -->
|
<!-- Versioning properties -->
|
||||||
<project.outputName>AuthMe</project.outputName>
|
<project.outputName>AuthMe</project.outputName>
|
||||||
|
|||||||
@ -153,10 +153,10 @@ public class DistributedFilesPersistenceHandlerTest {
|
|||||||
public void shouldAddPlayer() {
|
public void shouldAddPlayer() {
|
||||||
// given
|
// given
|
||||||
Player uuidToAdd1 = mockPlayerWithUuid(UNKNOWN_UUID);
|
Player uuidToAdd1 = mockPlayerWithUuid(UNKNOWN_UUID);
|
||||||
Location location1 = new Location(mockWorldWithName("1world"), 120, 60, -80, 0.42345f, 120.32f);
|
Location location1 = mockLocation("1world", 120, 60, -80, 0.42345f, 120.32f);
|
||||||
LimboPlayer limbo1 = new LimboPlayer(location1, false, Collections.singletonList("group-1"), true, 0.1f, 0.2f);
|
LimboPlayer limbo1 = new LimboPlayer(location1, false, Collections.singletonList("group-1"), true, 0.1f, 0.2f);
|
||||||
Player uuidToAdd2 = mockPlayerWithUuid(UNKNOWN_UUID2);
|
Player uuidToAdd2 = mockPlayerWithUuid(UNKNOWN_UUID2);
|
||||||
Location location2 = new Location(mockWorldWithName("2world"), -40, 20, 33, 4.235f, 8.32299f);
|
Location location2 = mockLocation("2world", -40, 20, 33, 4.235f, 8.32299f);
|
||||||
LimboPlayer limbo2 = new LimboPlayer(location2, true, Collections.emptyList(), false, 0.0f, 0.25f);
|
LimboPlayer limbo2 = new LimboPlayer(location2, true, Collections.emptyList(), false, 0.0f, 0.25f);
|
||||||
|
|
||||||
// when
|
// when
|
||||||
@ -203,4 +203,11 @@ public class DistributedFilesPersistenceHandlerTest {
|
|||||||
given(world.getName()).willReturn(name);
|
given(world.getName()).willReturn(name);
|
||||||
return world;
|
return world;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static Location mockLocation(String worldName, int x, int y, int z, float yaw,float pitch) {
|
||||||
|
World world = mockWorldWithName(worldName);
|
||||||
|
Location location = mock(Location.class);
|
||||||
|
given(location.getWorld()).willReturn(world);
|
||||||
|
return location;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user