Search in sources :

Example 1 with FakeDedicatedServer

use of com.builtbroken.mc.testing.junit.server.FakeDedicatedServer in project Engine by VoltzEngine-Project.

the class AbstractTileTest method setUpForEntireClass.

@Override
public void setUpForEntireClass() {
    super.setUpForEntireClass();
    server = new FakeDedicatedServer(new File(FakeWorldServer.baseFolder, tileClazz.getName()));
    world = FakeWorldServer.newWorld(server, tileClazz.getName());
    player = new TestPlayer(server, world, new GameProfile(null, "TileTester"));
}
Also used : TestPlayer(com.builtbroken.mc.testing.junit.testers.TestPlayer) GameProfile(com.mojang.authlib.GameProfile) File(java.io.File) FakeDedicatedServer(com.builtbroken.mc.testing.junit.server.FakeDedicatedServer)

Example 2 with FakeDedicatedServer

use of com.builtbroken.mc.testing.junit.server.FakeDedicatedServer in project Engine by VoltzEngine-Project.

the class TestAbstractLocation method setUpForEntireClass.

@Override
public void setUpForEntireClass() {
    super.setUpForEntireClass();
    server = new FakeDedicatedServer(new File(FakeWorldServer.baseFolder, "TestAbstractLocation"));
    world = FakeWorldServer.newWorld(server, "TestAbstractLocation");
    player = new TestPlayer(server, world, new GameProfile(null, "TileTester"));
}
Also used : TestPlayer(com.builtbroken.mc.testing.junit.testers.TestPlayer) GameProfile(com.mojang.authlib.GameProfile) File(java.io.File) FakeDedicatedServer(com.builtbroken.mc.testing.junit.server.FakeDedicatedServer)

Aggregations

FakeDedicatedServer (com.builtbroken.mc.testing.junit.server.FakeDedicatedServer)2 TestPlayer (com.builtbroken.mc.testing.junit.testers.TestPlayer)2 GameProfile (com.mojang.authlib.GameProfile)2 File (java.io.File)2