mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-27 06:20:02 +00:00
Resident plate lookups
- Loaded-plate probes use Mantle.getLoadedRegion instead of the region map
This commit is contained in:
1 parent
2930ca40fb
commit
53b36fe197
4 files changed
+4
-5
No files matched your search
@@ -21,7 +21,6 @@ import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertSame;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
import static org.mockito.ArgumentMatchers.anyInt;
|
||||
import static org.mockito.ArgumentMatchers.anyLong;
|
||||
import static org.mockito.Mockito.CALLS_REAL_METHODS;
|
||||
import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
|
||||
import static org.mockito.Mockito.doReturn;
|
||||
@@ -72,7 +71,7 @@ public class IrisCarveBoundaryFacesTest {
|
||||
matter[0][0].slice(PreObjectMatterCell.class).set(0, 5, 0, PreObjectMatterCell.cavern(null));
|
||||
Mantle<Matter> mantle = mock(Mantle.class, RETURNS_DEEP_STUBS);
|
||||
TectonicPlate<Matter> plate = mock(TectonicPlate.class);
|
||||
when(mantle.getLoadedRegions().get(anyLong())).thenReturn(plate);
|
||||
when(mantle.getLoadedRegion(anyInt(), anyInt())).thenReturn(plate);
|
||||
when(plate.get(31, 0)).thenReturn(chunks[1]);
|
||||
when(plate.get(1, 0)).thenReturn(chunks[2]);
|
||||
when(plate.get(0, 31)).thenReturn(chunks[3]);
|
||||
|
||||
Reference in new issue
Block a user