Search in sources :

Example 1 with GamePlayer

use of com.voxelgameslib.voxelgameslib.components.user.GamePlayer in project VoxelGamesLibv2 by VoxelGamesLib.

the class FeatureTest method getMockUser.

@Nonnull
public User getMockUser(@Nonnull String name) {
    User user = Mockito.spy(new GamePlayer());
    user.setDisplayName(name);
    return user;
}
Also used : User(com.voxelgameslib.voxelgameslib.components.user.User) GamePlayer(com.voxelgameslib.voxelgameslib.components.user.GamePlayer) Nonnull(javax.annotation.Nonnull)

Aggregations

GamePlayer (com.voxelgameslib.voxelgameslib.components.user.GamePlayer)1 User (com.voxelgameslib.voxelgameslib.components.user.User)1 Nonnull (javax.annotation.Nonnull)1