@@ -55,15 +55,13 @@ private class MockTrackBlock : TrackBlock {
5555}
5656
5757/* *
58- * Comprehensive unit tests for {@link DefaultRailWayNetGrid} .
58+ * Comprehensive unit tests for [ DefaultRailWayNetGrid] .
5959 *
60- * <p>Coverage:
61- * <ul>
62- * <li>Basic operations: put, get, remove, containsKey</li>
63- * <li>Reverse table consistency: cell-to-point mapping integrity</li>
64- * <li>Iterator operations: keySet iteration and removal</li>
65- * <li>Batch operations: putMap for TrackBlockPart collections</li>
66- * </ul>
60+ * Coverage:
61+ * - Basic operations: put, get, remove, containsKey
62+ * - Reverse table consistency: cell-to-point mapping integrity
63+ * - Iterator operations: keySet iteration and removal
64+ * - Batch operations: putMap for TrackBlockPart collections
6765 */
6866@DisplayName(" DefaultRailWayNetGrid" )
6967class DefaultRailWayNetGridTest {
@@ -478,11 +476,11 @@ class DefaultRailWayNetGridTest {
478476 val part1 = createTestTrackBlockPart()
479477 val part2 = createTestTrackBlockPart()
480478 val part3 = createTestTrackBlockPart()
481- val map = java.util. HashMap ( mapOf (
479+ val map = mapOf (
482480 point1 to part1,
483481 point2 to part2,
484482 point3 to part3
485- ))
483+ )
486484 grid.putMap(map)
487485
488486 // Act - remove all intermediate cells (simulate removeLine)
@@ -499,7 +497,7 @@ class DefaultRailWayNetGridTest {
499497 @DisplayName(" putMap with empty map does nothing" )
500498 fun putMap_emptyMap_doesNothing () {
501499 // Act
502- grid.putMap(java.util. HashMap ())
500+ grid.putMap(emptyMap< Point , TrackBlockPart > ())
503501
504502 // Assert
505503 assertThat(grid.isEmpty()).isTrue()
0 commit comments