Skip to content

Commit 4cd8149

Browse files
1 parent 5afc32c commit 4cd8149

File tree

155 files changed

+273
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

155 files changed

+273
-273
lines changed

acyclic-visitor/src/test/java/com/iluwatar/acyclicvisitor/ConfigureForDosVisitorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void testVisitForHayes() {
7474

7575
@BeforeEach
7676
@AfterEach
77-
public void clearLoggers() {
77+
void clearLoggers() {
7878
TestLoggerFactory.clear();
7979
}
8080
}

acyclic-visitor/src/test/java/com/iluwatar/acyclicvisitor/ConfigureForUnixVisitorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class ConfigureForUnixVisitorTest {
4444

4545
@BeforeEach
4646
@AfterEach
47-
public void clearLoggers() {
47+
void clearLoggers() {
4848
TestLoggerFactory.clear();
4949
}
5050

adapter/src/test/java/com/iluwatar/adapter/AdapterPatternTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AdapterPatternTest {
4848
* This method runs before the test execution and sets the bean objects in the beans Map.
4949
*/
5050
@BeforeEach
51-
public void setup() {
51+
void setup() {
5252
beans = new HashMap<>();
5353

5454
var fishingBoatAdapter = spy(new FishingBoatAdapter());

aggregator-microservices/aggregator-service/src/test/java/com/iluwatar/aggregator/microservices/AggregatorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AggregatorTest {
4848
private ProductInventoryClient inventoryClient;
4949

5050
@BeforeEach
51-
public void setup() {
51+
void setup() {
5252
MockitoAnnotations.openMocks(this);
5353
}
5454

api-gateway/api-gateway-service/src/test/java/com/iluwatar/api/gateway/ApiGatewayTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ApiGatewayTest {
4848
private PriceClient priceClient;
4949

5050
@BeforeEach
51-
public void setup() {
51+
void setup() {
5252
MockitoAnnotations.openMocks(this);
5353
}
5454

business-delegate/src/test/java/com/iluwatar/business/delegate/BusinessDelegateTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class BusinessDelegateTest {
4949
* execution of every test.
5050
*/
5151
@BeforeEach
52-
public void setup() {
52+
void setup() {
5353
netflixService = spy(new NetflixService());
5454
youTubeService = spy(new YouTubeService());
5555

caching/src/test/java/com/iluwatar/caching/CachingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CachingTest {
3939
* Setup of application test includes: initializing DB connection and cache size/capacity.
4040
*/
4141
@BeforeEach
42-
public void setUp() {
42+
void setUp() {
4343
// VirtualDB (instead of MongoDB) was used in running the JUnit tests
4444
// to avoid Maven compilation errors. Set flag to true to run the
4545
// tests with MongoDB (provided that MongoDB is installed and socket

callback/src/test/java/com/iluwatar/callback/CallbackTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* <p>
3535
* Could be done with mock objects as well where the call method call is verified.
3636
*/
37-
public class CallbackTest {
37+
class CallbackTest {
3838

3939
private Integer callingCount = 0;
4040

circuit-breaker/src/test/java/com/iluwatar/circuitbreaker/AppTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
/**
3535
* App Test showing usage of circuit breaker.
3636
*/
37-
public class AppTest {
37+
class AppTest {
3838

3939
private static final Logger LOGGER = LoggerFactory.getLogger(AppTest.class);
4040

@@ -60,7 +60,7 @@ public class AppTest {
6060
* and retry time period of 2 seconds.
6161
*/
6262
@BeforeEach
63-
public void setupCircuitBreakers() {
63+
void setupCircuitBreakers() {
6464
var delayedService = new DelayedRemoteService(System.nanoTime(), STARTUP_DELAY);
6565
//Set the circuit Breaker parameters
6666
delayedServiceCircuitBreaker = new DefaultCircuitBreaker(delayedService, 3000,
@@ -78,7 +78,7 @@ public void setupCircuitBreakers() {
7878
}
7979

8080
@Test
81-
public void testFailure_OpenStateTransition() {
81+
void testFailure_OpenStateTransition() {
8282
//Calling delayed service, which will be unhealthy till 4 seconds
8383
assertEquals("Delayed service is down", monitoringService.delayedServiceResponse());
8484
//As failure threshold is "1", the circuit breaker is changed to OPEN
@@ -93,7 +93,7 @@ public void testFailure_OpenStateTransition() {
9393
}
9494

9595
@Test
96-
public void testFailure_HalfOpenStateTransition() {
96+
void testFailure_HalfOpenStateTransition() {
9797
//Calling delayed service, which will be unhealthy till 4 seconds
9898
assertEquals("Delayed service is down", monitoringService.delayedServiceResponse());
9999
//As failure threshold is "1", the circuit breaker is changed to OPEN
@@ -112,7 +112,7 @@ public void testFailure_HalfOpenStateTransition() {
112112
}
113113

114114
@Test
115-
public void testRecovery_ClosedStateTransition() {
115+
void testRecovery_ClosedStateTransition() {
116116
//Calling delayed service, which will be unhealthy till 4 seconds
117117
assertEquals("Delayed service is down", monitoringService.delayedServiceResponse());
118118
//As failure threshold is "1", the circuit breaker is changed to OPEN

circuit-breaker/src/test/java/com/iluwatar/circuitbreaker/DefaultCircuitBreakerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
/**
3232
* Circuit Breaker test
3333
*/
34-
public class DefaultCircuitBreakerTest {
34+
class DefaultCircuitBreakerTest {
3535

3636
//long timeout, int failureThreshold, long retryTimePeriod
3737
@Test

0 commit comments

Comments
 (0)