mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 04:59:24 +00:00
📍Use lombok, reformat, and optimize the code (#1560)
* Use lombok, reformat, and optimize the code * Fix merge conflicts and some sonar issues Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
@@ -34,7 +34,7 @@ import org.junit.jupiter.api.Test;
|
||||
*
|
||||
* @author Jeroen Meulemeester
|
||||
*/
|
||||
public class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
|
||||
@Override
|
||||
final FlamingAsteroid getTestedObject() {
|
||||
@@ -45,7 +45,7 @@ public class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
* Test the constructor parameters
|
||||
*/
|
||||
@Test
|
||||
public void testConstructor() {
|
||||
void testConstructor() {
|
||||
final var asteroid = new FlamingAsteroid(1, 2, 3, 4);
|
||||
assertEquals(1, asteroid.getLeft());
|
||||
assertEquals(2, asteroid.getTop());
|
||||
@@ -60,7 +60,7 @@ public class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
* Test what happens we collide with an asteroid
|
||||
*/
|
||||
@Test
|
||||
public void testCollideFlamingAsteroid() {
|
||||
void testCollideFlamingAsteroid() {
|
||||
testCollision(
|
||||
new FlamingAsteroid(1, 2, 3, 4),
|
||||
false, true,
|
||||
@@ -72,7 +72,7 @@ public class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
* Test what happens we collide with an meteoroid
|
||||
*/
|
||||
@Test
|
||||
public void testCollideMeteoroid() {
|
||||
void testCollideMeteoroid() {
|
||||
testCollision(
|
||||
new Meteoroid(1, 1, 3, 4),
|
||||
false, false,
|
||||
@@ -84,7 +84,7 @@ public class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
* Test what happens we collide with ISS
|
||||
*/
|
||||
@Test
|
||||
public void testCollideSpaceStationIss() {
|
||||
void testCollideSpaceStationIss() {
|
||||
testCollision(
|
||||
new SpaceStationIss(1, 1, 3, 4),
|
||||
true, true,
|
||||
@@ -96,7 +96,7 @@ public class FlamingAsteroidTest extends CollisionTest<FlamingAsteroid> {
|
||||
* Test what happens we collide with MIR
|
||||
*/
|
||||
@Test
|
||||
public void testCollideSpaceStationMir() {
|
||||
void testCollideSpaceStationMir() {
|
||||
testCollision(
|
||||
new SpaceStationMir(1, 1, 3, 4),
|
||||
true, true,
|
||||
|
||||
Reference in New Issue
Block a user