📍Use lombok, reformat, and optimize the code (#1560)

* Use lombok, reformat, and optimize the code

* Fix merge conflicts and some sonar issues

Co-authored-by: va1m <va1m@email.com>
This commit is contained in:
va1m
2021-03-13 13:19:21 +01:00
committed by GitHub
parent 0e26a6adb5
commit 5cf2fe009b
681 changed files with 2472 additions and 4966 deletions

View File

@ -83,7 +83,7 @@ public abstract class TaskTest<T extends Task> {
* threads
*/
@Test
public void testIdGeneration() throws Exception {
void testIdGeneration() throws Exception {
assertTimeout(ofMillis(10000), () -> {
final var service = Executors.newFixedThreadPool(THREAD_COUNT);
@ -113,7 +113,7 @@ public abstract class TaskTest<T extends Task> {
* a given number of times
*/
@Test
public void testTimeMs() {
void testTimeMs() {
for (var i = 0; i < 10; i++) {
assertEquals(this.expectedExecutionTime * i, this.factory.apply(i).getTimeMs());
}
@ -123,7 +123,7 @@ public abstract class TaskTest<T extends Task> {
* Verify if the task has some sort of {@link T#toString()}, different from 'null'
*/
@Test
public void testToString() {
void testToString() {
assertNotNull(this.factory.apply(0).toString());
}

View File

@ -41,7 +41,7 @@ public class WorkerTest {
* Verify if a worker does the actual job
*/
@Test
public void testRun() {
void testRun() {
final var task = mock(Task.class);
final var worker = new Worker(task);
verifyZeroInteractions(task);