Fixed most reported issues by SonarCloud.

This commit is contained in:
Toxic Dreamz
2020-08-15 21:47:39 +04:00
parent e7e3ace01f
commit 31471acb69
190 changed files with 1426 additions and 661 deletions

View File

@ -30,6 +30,9 @@ import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
/**
* This class tests the Distributed Logging service by starting a Reactor and then sending it
* concurrent logging requests using multiple clients.
@ -50,9 +53,13 @@ public class ReactorTest {
var app = new App(new ThreadPoolDispatcher(2));
app.start();
assertNotNull(app);
var client = new AppClient();
client.start();
assertNotNull(client);
// allow clients to send requests. Artificial delay.
try {
Thread.sleep(2000);
@ -78,9 +85,13 @@ public class ReactorTest {
var app = new App(new SameThreadDispatcher());
app.start();
assertNotNull(app);
var client = new AppClient();
client.start();
assertNotNull(client);
// allow clients to send requests. Artificial delay.
try {
Thread.sleep(2000);