mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-21 18:15:26 +01:00
Update to mockbukkit 4.0
This commit is contained in:
parent
20af0350aa
commit
0b89738ec0
@ -136,7 +136,7 @@ dependencies {
|
||||
|
||||
// Tests
|
||||
testImplementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.0.21'
|
||||
testImplementation 'com.github.seeseemelk:MockBukkit-v1.21:3.133.2'
|
||||
testImplementation 'org.mockbukkit.mockbukkit:mockbukkit-v1.21:4.3.1'
|
||||
testImplementation('com.googlecode.json-simple:json-simple:1.1.1') {
|
||||
exclude group: 'junit', module: 'junit'
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package org.mvplugins.multiverse.core
|
||||
|
||||
import be.seeseemelk.mockbukkit.MockBukkit
|
||||
import com.dumptruckman.minecraft.util.Logging
|
||||
import org.mockbukkit.mockbukkit.MockBukkit
|
||||
import org.mvplugins.multiverse.core.inject.PluginServiceLocator
|
||||
import org.mvplugins.multiverse.core.mock.MVServerMock
|
||||
import org.mvplugins.multiverse.core.utils.TestingMode
|
||||
|
@ -1,8 +1,8 @@
|
||||
package org.mvplugins.multiverse.core.commands
|
||||
|
||||
import be.seeseemelk.mockbukkit.entity.PlayerMock
|
||||
import org.bukkit.Bukkit
|
||||
import org.bukkit.ChatColor
|
||||
import org.mockbukkit.mockbukkit.entity.PlayerMock
|
||||
import org.mvplugins.multiverse.core.TestWithMockBukkit
|
||||
import kotlin.test.BeforeTest
|
||||
import kotlin.test.Test
|
||||
|
@ -1,11 +1,11 @@
|
||||
package org.mvplugins.multiverse.core.mock;
|
||||
|
||||
import be.seeseemelk.mockbukkit.ServerMock;
|
||||
import be.seeseemelk.mockbukkit.WorldMock;
|
||||
import be.seeseemelk.mockbukkit.command.MockCommandMap;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.mockbukkit.mockbukkit.ServerMock;
|
||||
import org.mockbukkit.mockbukkit.command.CommandMapMock;
|
||||
import org.mockbukkit.mockbukkit.world.WorldMock;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@ -24,7 +24,7 @@ public class MVServerMock extends ServerMock {
|
||||
|
||||
// This is required for acf reflection to work
|
||||
@Override
|
||||
public @NotNull MockCommandMap getCommandMap() {
|
||||
public @NotNull CommandMapMock getCommandMap() {
|
||||
return super.getCommandMap();
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
package org.mvplugins.multiverse.core.mock;
|
||||
|
||||
import be.seeseemelk.mockbukkit.MockBukkit;
|
||||
import be.seeseemelk.mockbukkit.WorldMock;
|
||||
import org.bukkit.WorldCreator;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.mockbukkit.mockbukkit.MockBukkit;
|
||||
import org.mockbukkit.mockbukkit.world.WorldMock;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user