Commit 2c3378d1 authored by mey's avatar mey
Browse files

renamed LazyUpdatingMapTest to AbstractDynamicMapTest.java

    to reflect the rename done before on the tested class
parent 2c149530
......@@ -7,7 +7,7 @@ import org.junit.Test;
import sim.field.grid.BooleanGrid;
public class LazyUpdatingMapTest {
public class AbstractDynamicMapTest {
private static final int MAP_SIZE = 3;
/**
......@@ -41,7 +41,7 @@ public class LazyUpdatingMapTest {
@Test
public void markDirtyOnZeroExtend() {
TestLazyUpdatingMap map = new TestLazyUpdatingMap(MAP_SIZE, MAP_SIZE, 0, 0);
TestDynamicMap map = new TestDynamicMap(MAP_SIZE, MAP_SIZE, 0, 0);
map.markDirty(0, 0);
assertThat(map.updated.getField(), is(equalTo(NOT_UPDATED_RESULT)));
map.updateIfDirtyAll();
......@@ -51,7 +51,7 @@ public class LazyUpdatingMapTest {
@Test
public void markDirtyOnOneExtend() {
TestLazyUpdatingMap map = new TestLazyUpdatingMap(MAP_SIZE, MAP_SIZE, 1, 1);
TestDynamicMap map = new TestDynamicMap(MAP_SIZE, MAP_SIZE, 1, 1);
// lower right corner
map.markDirty(MAP_SIZE - 1, MAP_SIZE - 1);
assertThat(map.updated.getField(), is(equalTo(NOT_UPDATED_RESULT)));
......@@ -59,12 +59,12 @@ public class LazyUpdatingMapTest {
assertThat(map.updated.getField(), is(equalTo(UPDATED_RESULT_ONE)));
}
private static class TestLazyUpdatingMap extends AbstractDynamicMap {
private static class TestDynamicMap extends AbstractDynamicMap {
private static final long serialVersionUID = 1L;
final BooleanGrid updated;
public TestLazyUpdatingMap(int width, int height, int xExtend, int yExtend) {
public TestDynamicMap(int width, int height, int xExtend, int yExtend) {
super(width, height, xExtend, yExtend);
this.updated = new BooleanGrid(width, height);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment