mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-09-05 02:19:47 +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:
@@ -24,9 +24,10 @@
|
||||
*/
|
||||
package com.iluwatar.servicestub;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class AppTest {
|
||||
@Test
|
||||
void shouldExecuteWithoutException() {
|
||||
|
||||
+2
-2
@@ -24,9 +24,10 @@
|
||||
*/
|
||||
package com.iluwatar.servicestub;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class RealSentimentAnalysisServerTest {
|
||||
|
||||
@Test
|
||||
@@ -46,5 +47,4 @@ class RealSentimentAnalysisServerTest {
|
||||
RealSentimentAnalysisServer server = new RealSentimentAnalysisServer(() -> 2);
|
||||
assertEquals("Neutral", server.analyzeSentiment("Test"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-1
@@ -24,9 +24,10 @@
|
||||
*/
|
||||
package com.iluwatar.servicestub;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class StubSentimentAnalysisServerTest {
|
||||
|
||||
private final StubSentimentAnalysisServer stub = new StubSentimentAnalysisServer();
|
||||
|
||||
Reference in New Issue
Block a user