use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testUpdateLight.
@Test
public void testUpdateLight() {
FakeWorld world = FakeWorld.newWorld("TestUpdateLight");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
try {
Method method = Tile.class.getDeclaredMethod("updateLight");
method.setAccessible(true);
method.invoke(tile);
} catch (NoSuchMethodException e) {
fail("Could not find method updateLight");
} catch (InvocationTargetException e) {
e.printStackTrace();
fail("Failed to invoke method updateLight");
} catch (IllegalAccessException e) {
fail("Couldn't access method updateLight");
}
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testDoCleanupCheck.
@Test
public void testDoCleanupCheck() {
FakeWorld world = FakeWorld.newWorld("TestDoCleanupCheck");
world.setBlock(0, 0, 0, block);
Tile tile = (Tile) world.getTileEntity(0, 0, 0);
tile.doCleanupCheck();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testOnRemove.
@Test
public void testOnRemove() {
FakeWorld world = FakeWorld.newWorld("TestOnRemove");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.onRemove(block, 0);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetOwnerProfile.
@Test
public void testGetOwnerProfile() {
FakeWorld world = FakeWorld.newWorld("TestGetOwnerprofile");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getOwnerProfile();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testDetermineOrientation.
@Test
public void testDetermineOrientation() {
FakeWorld world = FakeWorld.newWorld("TestDetermineOrientation");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.determineOrientation(player);
//TODO maybe check to ensure direction is valid
}
Aggregations