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
@@ -33,28 +33,21 @@ import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
/**
* Test API Gateway Pattern
*/
/** Test API Gateway Pattern */
class ApiGatewayTest {
@InjectMocks
private ApiGateway apiGateway;
@InjectMocks private ApiGateway apiGateway;
@Mock
private ImageClient imageClient;
@Mock private ImageClient imageClient;
@Mock
private PriceClient priceClient;
@Mock private PriceClient priceClient;
@BeforeEach
void setup() {
MockitoAnnotations.openMocks(this);
}
/**
* Tests getting the data for a desktop client
*/
/** Tests getting the data for a desktop client */
@Test
void testGetProductDesktop() {
var imagePath = "/product-image.png";
@@ -68,9 +61,7 @@ class ApiGatewayTest {
assertEquals(imagePath, desktopProduct.getImagePath());
}
/**
* Tests getting the data for a mobile client
*/
/** Tests getting the data for a mobile client */
@Test
void testGetProductMobile() {
var price = "20";