mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 04:59:24 +00:00
deps: Refactor dependencies (#3224)
* remove spring dep move junit, logging, mockito under dep mgmt * upgrade anti-corruption-layer deps * async method invocation * balking, bloc * bridge to bytecode * caching * callback - cqrs * component - health check * hexagonal - metadata mapping * rest of the patterns * remove checkstyle, take spotless into use
This commit is contained in:
@@ -28,14 +28,11 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* App unit test class.
|
||||
*/
|
||||
/** App unit test class. */
|
||||
class AppTest {
|
||||
|
||||
@Test
|
||||
void shouldExecuteApplicationWithoutException() {
|
||||
assertDoesNotThrow(() -> App.main(new String[]{}));
|
||||
assertDoesNotThrow(() -> App.main(new String[] {}));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,13 +26,11 @@ package com.iluwatar.gameloop;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* FixedStepGameLoop unit test class.
|
||||
*/
|
||||
/** FixedStepGameLoop unit test class. */
|
||||
class FixedStepGameLoopTest {
|
||||
|
||||
private FixedStepGameLoop gameLoop;
|
||||
@@ -52,5 +50,4 @@ class FixedStepGameLoopTest {
|
||||
gameLoop.update();
|
||||
assertEquals(0.01f, gameLoop.controller.getBulletPosition(), 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,9 +30,7 @@ import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* FrameBasedGameLoop unit test class.
|
||||
*/
|
||||
/** FrameBasedGameLoop unit test class. */
|
||||
class FrameBasedGameLoopTest {
|
||||
|
||||
private FrameBasedGameLoop gameLoop;
|
||||
|
||||
@@ -54,5 +54,4 @@ class GameControllerTest {
|
||||
void testGetBulletPosition() {
|
||||
assertEquals(controller.bullet.getPosition(), controller.getBulletPosition(), 0);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -24,30 +24,28 @@
|
||||
*/
|
||||
package com.iluwatar.gameloop;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import static org.junit.jupiter.api.Assertions.assertFalse;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* GameLoop unit test class.
|
||||
*/
|
||||
/** GameLoop unit test class. */
|
||||
class GameLoopTest {
|
||||
|
||||
private GameLoop gameLoop;
|
||||
|
||||
/**
|
||||
* Create mock implementation of GameLoop.
|
||||
*/
|
||||
/** Create mock implementation of GameLoop. */
|
||||
@BeforeEach
|
||||
void setup() {
|
||||
gameLoop = new GameLoop() {
|
||||
@Override
|
||||
protected void processGameLoop() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
};
|
||||
gameLoop =
|
||||
new GameLoop() {
|
||||
@Override
|
||||
protected void processGameLoop() {
|
||||
throw new UnsupportedOperationException("Not supported yet.");
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@AfterEach
|
||||
|
||||
@@ -29,9 +29,7 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/**
|
||||
* VariableStepGameLoop unit test class.
|
||||
*/
|
||||
/** VariableStepGameLoop unit test class. */
|
||||
class VariableStepGameLoopTest {
|
||||
|
||||
private VariableStepGameLoop gameLoop;
|
||||
|
||||
Reference in New Issue
Block a user