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:
Ilkka Seppälä
2025-03-29 19:34:27 +02:00
committed by GitHub
parent 371439aeaa
commit 0ca162a55c
1863 changed files with 14408 additions and 17637 deletions
@@ -24,17 +24,15 @@
*/
package com.iluwatar.model.view.controller;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
/**
* Application test
*/
import org.junit.jupiter.api.Test;
/** Application test */
class AppTest {
@Test
void shouldExecuteApplicationWithoutException() {
assertDoesNotThrow(() -> App.main(new String[]{}));
assertDoesNotThrow(() -> App.main(new String[] {}));
}
}
@@ -30,15 +30,10 @@ import static org.mockito.Mockito.verifyNoMoreInteractions;
import org.junit.jupiter.api.Test;
/**
* GiantControllerTest
*
*/
/** GiantControllerTest */
class GiantControllerTest {
/**
* Verify if the controller passes the health level through to the model and vice versa
*/
/** Verify if the controller passes the health level through to the model and vice versa */
@Test
void testSetHealth() {
final var model = mock(GiantModel.class);
@@ -60,9 +55,7 @@ class GiantControllerTest {
verifyNoMoreInteractions(model, view);
}
/**
* Verify if the controller passes the fatigue level through to the model and vice versa
*/
/** Verify if the controller passes the fatigue level through to the model and vice versa */
@Test
void testSetFatigue() {
final var model = mock(GiantModel.class);
@@ -84,9 +77,7 @@ class GiantControllerTest {
verifyNoMoreInteractions(model, view);
}
/**
* Verify if the controller passes the nourishment level through to the model and vice versa
*/
/** Verify if the controller passes the nourishment level through to the model and vice versa */
@Test
void testSetNourishment() {
final var model = mock(GiantModel.class);
@@ -121,5 +112,4 @@ class GiantControllerTest {
verifyNoMoreInteractions(model, view);
}
}
}
@@ -28,15 +28,10 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
/**
* GiantModelTest
*
*/
/** GiantModelTest */
class GiantModelTest {
/**
* Verify if the health value is set properly though the constructor and setter
*/
/** Verify if the health value is set properly though the constructor and setter */
@Test
void testSetHealth() {
final var model = new GiantModel(Health.HEALTHY, Fatigue.ALERT, Nourishment.SATURATED);
@@ -49,9 +44,7 @@ class GiantModelTest {
}
}
/**
* Verify if the fatigue level is set properly though the constructor and setter
*/
/** Verify if the fatigue level is set properly though the constructor and setter */
@Test
void testSetFatigue() {
final var model = new GiantModel(Health.HEALTHY, Fatigue.ALERT, Nourishment.SATURATED);
@@ -64,9 +57,7 @@ class GiantModelTest {
}
}
/**
* Verify if the nourishment level is set properly though the constructor and setter
*/
/** Verify if the nourishment level is set properly though the constructor and setter */
@Test
void testSetNourishment() {
final var model = new GiantModel(Health.HEALTHY, Fatigue.ALERT, Nourishment.SATURATED);
@@ -78,5 +69,4 @@ class GiantModelTest {
assertEquals(String.format(messageFormat, nourishment), model.toString());
}
}
}
@@ -37,10 +37,7 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.slf4j.LoggerFactory;
/**
* GiantViewTest
*
*/
/** GiantViewTest */
class GiantViewTest {
private InMemoryAppender appender;
@@ -70,9 +67,7 @@ class GiantViewTest {
assertEquals(1, appender.getLogSize());
}
/**
* Logging Appender Implementation
*/
/** Logging Appender Implementation */
public static class InMemoryAppender extends AppenderBase<ILoggingEvent> {
private final List<ILoggingEvent> log = new LinkedList<>();