2019-02-08 00:17:55 +01:00
|
|
|
package world.bentobox.greenhouses.greenhouse;
|
|
|
|
|
|
|
|
import static org.junit.Assert.fail;
|
|
|
|
import static org.mockito.Mockito.mock;
|
|
|
|
import static org.mockito.Mockito.when;
|
|
|
|
|
|
|
|
import org.bukkit.Location;
|
|
|
|
import org.bukkit.Material;
|
|
|
|
import org.bukkit.World;
|
|
|
|
import org.bukkit.block.Block;
|
|
|
|
import org.junit.Before;
|
2019-03-02 19:53:15 +01:00
|
|
|
import org.junit.Ignore;
|
2019-02-08 00:17:55 +01:00
|
|
|
import org.junit.Test;
|
|
|
|
import org.mockito.Mockito;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author tastybento
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class RoofTest {
|
|
|
|
|
|
|
|
private Roof roof;
|
|
|
|
private Block block;
|
|
|
|
private Location location;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @throws java.lang.Exception
|
|
|
|
*/
|
|
|
|
@Before
|
|
|
|
public void setUp() throws Exception {
|
|
|
|
location = mock(Location.class);
|
|
|
|
World world = mock(World.class);
|
|
|
|
when(world.getMaxHeight()).thenReturn(255);
|
|
|
|
block = mock(Block.class);
|
|
|
|
when(block.getType()).thenReturn(Material.GLASS);
|
|
|
|
when(world.getBlockAt(Mockito.anyInt(), Mockito.anyInt(), Mockito.anyInt())).thenReturn(block);
|
|
|
|
when(location.getWorld()).thenReturn(world);
|
|
|
|
when(location.getBlockX()).thenReturn(10);
|
|
|
|
when(location.getBlockY()).thenReturn(10);
|
|
|
|
when(location.getBlockZ()).thenReturn(10);
|
2019-03-02 19:53:15 +01:00
|
|
|
|
2019-02-08 00:17:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#Roof(org.bukkit.Location)}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testRoof() {
|
|
|
|
//roof = new Roof(location);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getMinX()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetMinX() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#setMinX(int)}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testSetMinX() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getMaxX()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetMaxX() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#setMaxX(int)}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testSetMaxX() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getMinZ()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetMinZ() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#setMinZ(int)}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testSetMinZ() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getMaxZ()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetMaxZ() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#setMaxZ(int)}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testSetMaxZ() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getArea()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetArea() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#isRoofFound()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testIsRoofFound() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getHeight()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetHeight() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#getLocation()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testGetLocation() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Test method for {@link world.bentobox.greenhouses.greenhouse.Roof#toString()}.
|
|
|
|
*/
|
2019-03-02 19:53:15 +01:00
|
|
|
@Ignore
|
2019-02-08 00:17:55 +01:00
|
|
|
@Test
|
|
|
|
public void testToString() {
|
|
|
|
fail("Not yet implemented"); // TODO
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|