@Test
public void testFixAllZIndicesForAllOtherShapesAbove() {
MarboardZone zone = new MarboardZone("testFixAllZIndicesForAllOtherShapesAbove");
MarboardWorld.get().addRPZone(zone);
zone.add(new Dot(1, 1, 1, 1, 1));
zone.add(new Dot(2, 2, 2, 2, 2));
zone.add(new Dot(4, 4, 4, 4, 3));
zone.add(new Dot(5, 5, 5, 5, 4));
zone.add(new Dot(6, 6, 6, 6, 5));
zone.add(new User("testuser"));
zone.fixAllZIndicesForAllOtherShapesAbove(3, new Dot(3, 3, 3, 3, 3));
for (RPObject object : zone) {
assertEquals(object.get("x"), object.get("z"));
}
Shape shape = new Dot(7, 7, 7, 7);
zone.add(shape);
assertThat(shape.get("z"), equalTo("7"));
}