mirror of
https://github.com/GTNewHorizons/ForgeMultipart.git
synced 2026-11-13 17:04:25 +00:00
test: characterize multipart ordering and move lifecycle
This commit is contained in:
1 parent
4616b5834c
commit
6410cc0028
6 files changed
+258
-15
No files matched your search
@@ -160,6 +160,9 @@ class TileMultipartCharacterizationTest {
|
||||
assertTrue(tile.canReplacePart(outgoing, new CountingPart("c")));
|
||||
// A part already present, other than the outgoing one, cannot be added again.
|
||||
assertFalse(tile.canReplacePart(outgoing, other));
|
||||
assertEquals(Arrays.asList(outgoing, other), tile.jPartList(), "A replacement check must not mutate order");
|
||||
assertSame(tile, outgoing.tile());
|
||||
assertSame(tile, other.tile());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in new issue
Block a user