use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetOwnerName.
@Test
public void testGetOwnerName() {
FakeWorld world = FakeWorld.newWorld("TestGetOwnerName");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.getOwnerName();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testBlockUpdate.
@Test
public void testBlockUpdate() {
FakeWorld world = FakeWorld.newWorld("TestBlockUpdate");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.blockUpdate();
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testGetStrongRedstonePower.
@Test
public void testGetStrongRedstonePower() {
FakeWorld world = FakeWorld.newWorld("TestGetStrongRedstonepower");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
for (int i = 0; i < 6; i++) {
tile.getStrongRedstonePower(i);
}
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testCanSilkHarvest.
@Test
public void testCanSilkHarvest() {
FakeWorld world = FakeWorld.newWorld("TestCanSilkHarvest");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
tile.canSilkHarvest(player, 0);
}
use of com.builtbroken.mc.testing.junit.world.FakeWorld in project Engine by VoltzEngine-Project.
the class AbstractTileTest method testMarkUpdate.
@Test
public void testMarkUpdate() {
FakeWorld world = FakeWorld.newWorld("TestMarkUpdate");
world.setBlock(0, 0, 0, block);
Tile tile = ((Tile) world.getTileEntity(0, 0, 0));
try {
Method method = Tile.class.getDeclaredMethod("markUpdate");
method.setAccessible(true);
method.invoke(tile);
} catch (NoSuchMethodException e) {
fail("Could not find method markUpdate");
} catch (InvocationTargetException e) {
e.printStackTrace();
fail("Failed to invoke method markUpdate");
} catch (IllegalAccessException e) {
fail("Couldn't access method markUpdate");
}
}
Aggregations