📍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:
@ -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());
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user