* Tests for configuring only part of the zone
*/
@Test
public void testConfigureSubZone() {
StendhalRPZone zone = new StendhalRPZone("testzone", 20, 20);
ZoneConfigurator conf = new NoTeleportOut();
Map<String, String> attributes = new HashMap<String, String>();
attributes.put("x", "1");
attributes.put("y", "1");
attributes.put("width", "5");
attributes.put("height", "5");
conf.configureZone(zone, attributes);
assertTrue("Outside the blocked area", zone.isTeleportOutAllowed(0, 0));
assertFalse("Inside the blocked area", zone.isTeleportOutAllowed(1, 1));
assertFalse("Inside the blocked area", zone.isTeleportOutAllowed(5, 5));
assertTrue("Outside the blocked area", zone.isTeleportOutAllowed(6, 6));
assertTrue(zone.isTeleportInAllowed(0, 0));