Java 11 migrate c-d (remaining) (#1111)
* Moves converter pattern to Java 11 * Moves cqrs pattern to Java 11 * Moves dao pattern to Java 11 * Moves data-bus pattern to Java 11 * Moves data-locality pattern to Java 11 * Moves data-mapper pattern to Java 11 * Moves data-transfer-object pattern to Java 11 * Moves decorator pattern to Java 11 * Moves delegation pattern to Java 11 * Moves dependency-injection to Java 11 * Moves dirty-flag to Java 11 * Moves double-buffer to Java 11 * Moves double-checked-locking to Java 11 * Moves double-dispatch to Java 11 * Corrects with changes thats breaking test cases
This commit is contained in:
committed by
Ilkka Seppälä
parent
5681684157
commit
ea57934db6
@@ -23,11 +23,11 @@
|
||||
|
||||
package com.iluwatar.doubledispatch;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* Date: 12/10/15 - 11:31 PM
|
||||
*
|
||||
@@ -45,7 +45,7 @@ public class SpaceStationMirTest extends CollisionTest<SpaceStationMir> {
|
||||
*/
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
final SpaceStationMir mir = new SpaceStationMir(1, 2, 3, 4);
|
||||
final var mir = new SpaceStationMir(1, 2, 3, 4);
|
||||
assertEquals(1, mir.getLeft());
|
||||
assertEquals(2, mir.getTop());
|
||||
assertEquals(3, mir.getRight());
|
||||
@@ -63,8 +63,7 @@ public class SpaceStationMirTest extends CollisionTest<SpaceStationMir> {
|
||||
testCollision(
|
||||
new FlamingAsteroid(1, 1, 3, 4),
|
||||
false, true,
|
||||
false, false,
|
||||
"SpaceStationMir hits FlamingAsteroid."
|
||||
false, false
|
||||
);
|
||||
}
|
||||
|
||||
@@ -76,8 +75,7 @@ public class SpaceStationMirTest extends CollisionTest<SpaceStationMir> {
|
||||
testCollision(
|
||||
new Meteoroid(1, 1, 3, 4),
|
||||
false, false,
|
||||
false, false,
|
||||
"SpaceStationMir hits Meteoroid."
|
||||
false, false
|
||||
);
|
||||
}
|
||||
|
||||
@@ -89,8 +87,7 @@ public class SpaceStationMirTest extends CollisionTest<SpaceStationMir> {
|
||||
testCollision(
|
||||
new SpaceStationIss(1, 1, 3, 4),
|
||||
true, false,
|
||||
false, false,
|
||||
"SpaceStationMir hits SpaceStationIss. SpaceStationIss is damaged!"
|
||||
false, false
|
||||
);
|
||||
}
|
||||
|
||||
@@ -102,8 +99,7 @@ public class SpaceStationMirTest extends CollisionTest<SpaceStationMir> {
|
||||
testCollision(
|
||||
new SpaceStationMir(1, 1, 3, 4),
|
||||
true, false,
|
||||
false, false,
|
||||
"SpaceStationMir hits SpaceStationMir. SpaceStationMir is damaged!"
|
||||
false, false
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user